-
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
EIP-1559/London/0x2 transactions do not work due to default inclusion of gasPrice
#4211
Comments
This is going to be addressed via this, however it's strange this didn't come up during our testing. We have tests that pull down Geth from docker and execute our tests against it, so this needs further investigation (e.g. this test should be failing with the issue raised here) Thank you for bringing to our attention |
* Closes #4210 - allow non-hex values for eip1559 gas params * Add tests for 4210 * Closes #4211 * Add tests for 4210 (#4218) * Update CHANGELOG Co-authored-by: Greg Markou <gregmarkou@Gregs-MacBook-Pro.local> Co-authored-by: Wyatt Barnes <me@wyatt.email> Co-authored-by: Wyatt Barnes <wyatt@writerof.software>
@haltman-at |
OK, tried it out, and oddly I'm still getting this error. (The hex string problem is fixed though, thanks!) Truffle console log, FWIW:
Moreover, just to be absolutely sure it was not Truffle causing the problem (not that that would make any sense, but I wanted to be certain), I performed a second test where I did not use Truffle, and got the same result:
|
(It's not possible that this is a Geth bug, is it...? It's not like I've tested making such transactions against Geth by any other means, or tried clients other than Geth... perhaps I can try that later if necessary...) |
@haltman-at Thank you for getting back to us so quickly! I think I understand a bit of what's going on, and it seems to be a web3.js bug I'll be working on getting out a patch asap |
For reference, this section of code was never updated to account for EIP-1559 |
Expected behavior
Including either of the
maxFeePerGas
ormaxPriorityFeePerGas
fields when sending a transaction should result in a transaction of type 0x2 with nogasPrice
field.Actual behavior
A
gasPrice
field is included by default, resulting in a nonsense transaction that's trying to be both EIP-1559 and pre-EIP-1559 at the same time, which Geth will reject.Steps to reproduce the behavior
Start Geth in development mode with HTTP enabled, then make a transaction on it using
web3.eth.sendTransaction
, specifying either of themaxFeePerGas
ormaxPriorityFeePerGas
fields (make sure they're hex strings per #4210) (and making sure you use the unlocked account for yourfrom
address).Logs
Example with Truffle Console:
Environment
NPM: 6.14.11
Node: 12.21.0
web3.js: 1.5.0
Ethereum client: Geth 1.10.6-stable
The text was updated successfully, but these errors were encountered: