The filed chainId
is required, but eth_estimateGas
rejects it.
#1583
Labels
t:bug
Something isn't working
chainId
is required, but eth_estimateGas
rejects it.
#1583
Description
The filed
chainId
is required for latest transactions:TransactionLegacyUnsigned
,chainId
is optional.Transaction2930Unsigned
,chainId
is required.Transaction1559Unsigned
,chainId
is required.For JSON-RPC method
eth_estimateGas
:Ethereum will accept this field. (ref: Ethereum JSON-RPC Specification)
But Axon won't.
When a request contains
chainId
, Axon will throw an error.axon/core/api/src/jsonrpc/web3_types.rs
Lines 303 to 322 in f692b86
In Further
Other fields in JSON-RPC methods required to be checked, too.
In fact, hardhat (ethers.js) always sends this field when call
eth_estimateGas
.Why does it found until now?
Because, all tests call this method manually.
For examples: THIS.
The text was updated successfully, but these errors were encountered: