Skip to content

Commit

Permalink
More fixing hackenproof
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Aug 29, 2024
1 parent 82f9422 commit 0067f7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/bounty-targets/hackenproof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def directory_index
name: program['title'].strip,
slug: program['slug'],
url: "https://hackenproof.com/programs/#{program['slug']}",
archived: program['status'] == 'archived',
archived: program['state'] == 'archived',
triaged_by_hackenproof: program['managed_by_company_name'] == 'HackenProof'
}
end)
Expand Down Expand Up @@ -80,9 +80,9 @@ def program_scopes(program)
def normalize_scope(scope)
{
target: scope['target'],
type: scope['type'],
type: scope['title'],
instruction: (scope['target_description'] || '').strip,
severity: scope['severity'],
severity: scope['criticality'],
reward: scope['reward_type']
}
end
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/hackenproof/programs_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"submitted_reports": 21,
"min_bounty": "50.0",
"max_bounty": "5000.0",
"status": "archived",
"state": "archived",
"audit_program": false,
"private": false,
"managed_by_company_name": "HackenProof",
Expand Down

0 comments on commit 0067f7f

Please sign in to comment.