Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhagarwal03 committed Jul 4, 2024
1 parent 692692a commit bb0b4b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/balanceof_imbalances.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_eth_balance(
return None

def extract_token_addresses(
self, tx_receipt: Dict[Any, Any]
self, tx_receipt: TxReceipt
) -> Set[ChecksumAddress]:
"""Extract unique token addresses from 'Transfer' events in a transaction receipt."""
token_addresses: Set[ChecksumAddress] = set()
Expand Down
4 changes: 2 additions & 2 deletions src/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def process_transactions(chain_name: str) -> None:
)
except Exception as e:
logger.error("Error processing transactions on %s: %s", chain_name, e)

time.sleep(sleep_time)
if sleep_time is not None:
time.sleep(sleep_time)


def main() -> None:
Expand Down

0 comments on commit bb0b4b4

Please sign in to comment.