avalanchego icon indicating copy to clipboard operation
avalanchego copied to clipboard

EIP-1559 eth_call fails when using maxPriorityFeePerGas without maxFeePerGas

Open mjay0 opened this issue 3 years ago • 1 comments

Describe the bug When doing eth_call with EIP-1559 transaction with maxPriorityFeePerGas and without maxFeePerGas, transaction fails. Returned error: err: max priority fee per gas higher than max fee per gas: address 0x0000000000000000000000000000000000000123, maxPriorityFeePerGas: 50000000000, maxFeePerGas: 0 (supplied gas 1500000) Same transaction with eth_sendtransaction works fine.

To Reproduce eth_call smart contract function with maxPriorityFeePerGas specified and without maxFeePerGas

Expected behavior Would expect eth_call and eth_sendtransaction to both be either fine without maxFeePerGas or both fail without maxFeePerGas

Operating System Ubuntu 20.04 - avalanche/1.7.2

mjay0 avatar Dec 15 '21 21:12 mjay0

Can you supply the exact details of the two calls that you're making?

aaronbuchwald avatar Dec 20 '21 19:12 aaronbuchwald