From fcfc158e6227c5694675c7aec333cbde26f0ad6b Mon Sep 17 00:00:00 2001 From: nolash Date: Sun, 25 Apr 2021 16:28:59 +0200 Subject: [PATCH] Complete rehabilitation for tests in isolated categories --- apps/cic-eth/cic_eth/ext/tx.py | 2 +- apps/cic-eth/cic_eth/queue/time.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cic-eth/cic_eth/ext/tx.py b/apps/cic-eth/cic_eth/ext/tx.py index d635fd54..a5d59aa7 100644 --- a/apps/cic-eth/cic_eth/ext/tx.py +++ b/apps/cic-eth/cic_eth/ext/tx.py @@ -114,7 +114,7 @@ def list_tx_by_bloom(self, bloomspec, address, chain_spec_dict): # TODO: pass through registry to validate declarator entry of token #token = registry.by_address(tx['to'], sender_address=self.call_address) - token = ERC20Token(rpc, tx['to']) + token = ERC20Token(chain_spec, rpc, tx['to']) token_symbol = token.symbol token_decimals = token.decimals times = tx_times(tx['hash'], chain_spec) diff --git a/apps/cic-eth/cic_eth/queue/time.py b/apps/cic-eth/cic_eth/queue/time.py index b3c74ece..e60a4788 100644 --- a/apps/cic-eth/cic_eth/queue/time.py +++ b/apps/cic-eth/cic_eth/queue/time.py @@ -12,6 +12,7 @@ from chainqueue.error import NotLocalTxError # local imports from cic_eth.task import CriticalSQLAlchemyAndWeb3Task +from cic_eth.db.models.base import SessionBase celery_app = celery.current_app