-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If network supports EIP-1559, then we cannot send a legacy transaction #4258
Comments
Temporary fix for this if anyone experiences this is:
Note that if you try to do a legacy transaction |
@floatcoder I've tried what you have suggested and it's working for me (for both hot wallet and hardware wallet connecting via MetaMask). However, there is an error log in my console with a message as ps. I haven't really tried confirming the tx in MetaMask but the MetaMask UI doesn't show any error nor reverted. |
for some reason, the ability to send legacy tx was removed |
WTF???? I still WANT to send a LEGACY transaction EVEN though it DOES support EIP. |
v1.5.3-rc.0 has been released to NPM, please test to verify it solves encountered issues |
Expected behavior
I would expect to be able to specify a legacy
tx.type
(i.e. "0x0" ) and allow for the gasPrice to be auto-filled. The motivation for this is that some hardware wallets do not yet support EIP1559 transactions, while the network provider will.Actual behavior
Instead the
maxFeePerGas
andmaxPriorityFeePerGas
are set causing a transaction envelope rejection. This I imagine is due to the difference between web3-core-method_handleTxPricing
and web3-eth-accounts_handleTxPricing
.web3-eth-accounts
checks thetx.type
whileweb3-core-method
does not.Note that this is the reverse of the issue mentioned in MetaMask/metamask-extension#11824 where if we intend to do a legacy transaction, the
gasPrice
gets overwritten.Steps to reproduce the behavior
const ethContract = new web3.eth.Contract(...)
ethContract.methods["approve"].send({ type: "0x0" })
Logs
Environment
web3 1.5.2
The text was updated successfully, but these errors were encountered: