Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Nov 18, 2020
2 parents 675162e + cb7bb3f commit 2b56bb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/grants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2718,10 +2718,10 @@ def contribute_to_grants_v1(request):
})
continue

contributor_address = contribution.get('contributor_address', None)
tx_id = contribution.get('tx_id', None)
contributor_address = contribution.get('contributor_address', '0x0')
tx_id = contribution.get('tx_id', '0x0')

if not contributor_address and not tx_id:
if contributor_address == '0x0' and tx_id == '0x0':
invalid_contributions.append({
'grant_id': grant_id,
'message': 'error: either contributor_address or tx_id must be supplied'
Expand Down

0 comments on commit 2b56bb9

Please sign in to comment.