provider.call(tx) specifies both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) (EIP-1559) #2891
Replies: 6 comments 3 replies
-
Can you provide the value that the variable Also pls see that the signature of provider.call is: call(
transaction: Deferrable<TransactionRequest>,
blockTag?: BlockTag | Promise<BlockTag>
): Promise<string>; Hence the third arg that is being passed would be a no-op. |
Beta Was this translation helpful? Give feedback.
-
Got the same issue but it's from calling Quickswap router contract for swapping
It failed with a "CALL EXCEPTION" error then I used somebody's code to extract a little details of the error
I got this
Can you please help? |
Beta Was this translation helpful? Give feedback.
-
It seems your transaction is failing due to the revert
The code snippet in the OP would not work because the let code = await provider.call({to: a.to, data: a.data, value: a.value}, a.blockNumber) |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem as stated by you, I'm trying to call an Contract interface, passing override arguments for EIP-1559.
This gives me the error: |
Beta Was this translation helpful? Give feedback.
-
I think there may be another issue here. I have been able to submit transactions to I'm moving this to discussions. If you can provide a concise example, including all values, which can be cut and paste into a script, please do. Include all parameters, addresses, etc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When I try to use provider.call(tx, tx.blockNumber) to get information about a transaction, I always get an error ""both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified".
Reproduction steps
Environment:
"ethers": "^5.6.0"
"node": "^17.5.0"
testnet: Polygon Mumbai
Search Terms
EIP-1559, provider, call
Beta Was this translation helpful? Give feedback.
All reactions