diff --git a/lib/bounty-targets/hackenproof.rb b/lib/bounty-targets/hackenproof.rb index f3df9a5..ec1af92 100644 --- a/lib/bounty-targets/hackenproof.rb +++ b/lib/bounty-targets/hackenproof.rb @@ -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) @@ -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 diff --git a/spec/fixtures/hackenproof/programs_1.json b/spec/fixtures/hackenproof/programs_1.json index 39202d7..508be40 100644 --- a/spec/fixtures/hackenproof/programs_1.json +++ b/spec/fixtures/hackenproof/programs_1.json @@ -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",