Skip to content

Commit

Permalink
fix unit test for eip155 tx
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed May 14, 2024
1 parent f302d5e commit 9a8d647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/utils/test_eth_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async def test_should_decode_all_transactions_types(
assert transaction["gas"] == decoded_tx["gas_limit"]
assert expected_to == decoded_tx["destination"]
assert transaction["value"] == int(decoded_tx["amount"], 16)
assert transaction["chainId"] == decoded_tx["chain_id"]
# pre-eip155 txs have an internal chain_id set to 0 in the decoded tx
assert transaction.get("chainId", 0) == decoded_tx["chain_id"]
assert expected_data == decoded_tx["payload"]
assert expected_access_list == decoded_tx["access_list"]

Expand Down

0 comments on commit 9a8d647

Please sign in to comment.