Skip to content

Commit

Permalink
fix None from or to address
Browse files Browse the repository at this point in the history
  • Loading branch information
dsm-ll committed Sep 2, 2024
1 parent 7b63e5e commit f827bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetch_disputables/ContractMonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ async def process_contract(
to_address = tx["to"]

if (
from_address.lower() == contract_address.lower()
or to_address.lower() == contract_address.lower()
from_address is not None and from_address.lower() == contract_address.lower()
or to_address is not None and to_address.lower() == contract_address.lower()
):
tx_hash = tx["hash"]
receipt = w3.eth.get_transaction_receipt(tx_hash)
Expand Down

0 comments on commit f827bbd

Please sign in to comment.