Closed matthewwalsh0 closed 2 weeks ago
Prevent the following error when estimating gas limits on specific chains:
invalid argument 0: json: cannot unmarshal hex number with leading zero digits into Go struct field TransactionArgs.gas of type hexutil.Uint64
Specifically:
gas
eth_estimateGas
gasPrice
maxFeePerGas
maxPriorityFeePerGas
Fixes #28307 #28175
@metamask/transaction-controller
estimateGas
estimateGasBuffered
@metamaskbot publish-preview
Preview builds have been published. See these instructions for more information about preview builds.
Explanation
Prevent the following error when estimating gas limits on specific chains:
Specifically:
gas
property from theeth_estimateGas
request.gasPrice
,maxFeePerGas
,maxPriorityFeePerGas
) from theeth_estimateGas
request.References
Fixes #28307 #28175
Changelog
@metamask/transaction-controller
estimateGas
andestimateGasBuffered
methods.Checklist