Skip to content

Commit

Permalink
Remove unnecessary HexBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez committed Mar 19, 2024
1 parent 8910c02 commit b5ca907
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from github import Github
from github.GithubException import GithubException
from github.Repository import Repository
from hexbytes import HexBytes

from gnosis.eth import EthereumClient

Expand All @@ -32,7 +31,7 @@ def get_chain_enum_name(chain_id: int) -> Optional[str]:

def get_contract_block_from_tx_hash(rpc_url: str, tx_hash: str) -> Optional[int]:
ethereum_client = EthereumClient(rpc_url)
tx = ethereum_client.get_transaction(HexBytes(tx_hash))
tx = ethereum_client.get_transaction(tx_hash)
if not tx:
print(f"Transaction not found: {tx_hash}")
return
Expand Down

0 comments on commit b5ca907

Please sign in to comment.