Skip to content

Commit 1b1efea

Browse files
committed
fallback check fulfillment bounty token in sync
1 parent 90f249c commit 1b1efea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/dashboard/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ def has_tx_mined(txid, network):
478478

479479
def sync_payout(fulfillment):
480480
token_name = fulfillment.token_name
481+
if not token_name:
482+
token_name = fulfillment.bounty.token_name
481483

482484
if token_name == 'ETC':
483485
sync_etc_payout(fulfillment)
@@ -863,7 +865,7 @@ def get_nonce(network, address, ignore_db=False):
863865
nonce_from_web3 = w3.eth.getTransactionCount(address)
864866
if ignore_db:
865867
return nonce_from_web3
866-
868+
867869
# db storage
868870
key = f"nonce_{network}_{address}"
869871
view = 'get_nonce'

0 commit comments

Comments
 (0)