-
Notifications
You must be signed in to change notification settings - Fork 982
fix : eth_estimateGas fails with EIP-7702 (authorizationList) transactions #9345
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ifeoluwa Sanni <[email protected]>
Signed-off-by: Ifeoluwa Sanni <[email protected]>
Signed-off-by: Ifeoluwa Sanni <[email protected]>
daniellehrner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see any changes to EthEstimateGas, don't we need those? In general we need to add tests to EthEstimateGasAcceptanceTest, unit tests alone with mocking the results, won't tell us if the change actually works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is empty and can be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is empty and can be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this class do? It sems to only throw exceptions
| Bytes.fromHexStringLenient(r).toUnsignedBigInteger(), | ||
| Bytes.fromHexStringLenient(s).toUnsignedBigInteger(), | ||
| Bytes.fromHexStringLenient(v).get(0))); | ||
| Bytes.fromHexStringLenient(recoveryId).get(0))); // ← Use recoveryId instead of v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the comment can be deleted, it is already explained above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to change an existing test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can just reuse the class from ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/CodeDelegation.java
Signed-off-by: Ifeoluwa Sanni <[email protected]>
This reverts commit 567fc78. Signed-off-by: Ifeoluwa Sanni <[email protected]>
This reverts commit 77de45c. Signed-off-by: Ifeoluwa Sanni <[email protected]>
Signed-off-by: Ifeoluwa Sanni <[email protected]>
into fix-hyperledger#9230 fix sign off Signed-off-by: Ifeoluwa Sanni [email protected]
PR description
fixes the failure EIP-7702 (authorizationList) transactions with eth_estimateGas
Fixed Issue(s)
fixes #9230
Thanks for sending a pull request! Have you done the following?
doc-change-requiredlabel to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests