We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4fac7b commit e55aa98Copy full SHA for e55aa98
web3/middleware/validation.py
@@ -55,11 +55,12 @@
55
56
@curry
57
def _validate_chain_id(web3_chain_id: int, chain_id: int) -> int:
58
- if to_integer_if_hex(chain_id) == web3_chain_id:
+ chain_id_int = to_integer_if_hex(chain_id)
59
+ if chain_id_int == web3_chain_id:
60
return chain_id
61
else:
62
raise ValidationError(
- f"The transaction declared chain ID {chain_id!r}, "
63
+ f"The transaction declared chain ID {chain_id_int!r}, "
64
f"but the connected node is on {web3_chain_id!r}"
65
)
66
0 commit comments