This repository was archived by the owner on Mar 5, 2025. It is now read-only.
maxFeePerGas
and maxPriorityFeePerGas
have to be given as hex strings
#4210
Labels
1.x
1.0 related issues
Expected behavior
It should be possible to give these fields in the same formats that web3 accepts for other numeric fields (numbers, decimal or hexadecimal numeric strings, BNs, BigNumbers).
Actual behavior
You get an error unless they're given as hex strings. See example in logs below.
Steps to reproduce the behavior
Make any transaction with
web3.eth.sendTransaction
with eithermaxFeePerGas
ormaxPriorityFeePerGas
in any format other than a hex string! (E.g. number, decimal numeric string, BN, or BigNumber.)Logs
Example with Truffle console:
Environment
NPM: 6.14.11
Node: 12.21.0
web3.js: 1.5.0
The text was updated successfully, but these errors were encountered: