We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 675162e + cb7bb3f commit 2b56bb9Copy full SHA for 2b56bb9
1 file changed
app/grants/views.py
@@ -2718,10 +2718,10 @@ def contribute_to_grants_v1(request):
2718
})
2719
continue
2720
2721
- contributor_address = contribution.get('contributor_address', None)
2722
- tx_id = contribution.get('tx_id', None)
+ contributor_address = contribution.get('contributor_address', '0x0')
+ tx_id = contribution.get('tx_id', '0x0')
2723
2724
- if not contributor_address and not tx_id:
+ if contributor_address == '0x0' and tx_id == '0x0':
2725
invalid_contributions.append({
2726
'grant_id': grant_id,
2727
'message': 'error: either contributor_address or tx_id must be supplied'
0 commit comments