From 1b1efeaa9093dec85521061e5f0d39563063e23c Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Thu, 23 Apr 2020 01:46:26 +0900 Subject: [PATCH] fallback check fulfillment bounty token in sync --- app/dashboard/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/dashboard/utils.py b/app/dashboard/utils.py index f6bc5e6064a..5499122723e 100644 --- a/app/dashboard/utils.py +++ b/app/dashboard/utils.py @@ -478,6 +478,8 @@ def has_tx_mined(txid, network): def sync_payout(fulfillment): token_name = fulfillment.token_name + if not token_name: + token_name = fulfillment.bounty.token_name if token_name == 'ETC': sync_etc_payout(fulfillment) @@ -863,7 +865,7 @@ def get_nonce(network, address, ignore_db=False): nonce_from_web3 = w3.eth.getTransactionCount(address) if ignore_db: return nonce_from_web3 - + # db storage key = f"nonce_{network}_{address}" view = 'get_nonce'