You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
docs: Documentation-only changes
feat: A new feature
fix: A bug fix
perf: A code change that improves performance
refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
test: Adding missing tests or correcting existing tests
3. Deployment tag versioning
Has the version in params/version.go been updated?
This PR doesn't involve a new deployment, git tag, docker image tag, and it doesn't affect traces
Yes
4. Breaking change label
Does this PR have the breaking-change label?
This PR is not a breaking change
Yes
Summary by CodeRabbit
Release Notes
Bug Fixes
Fixed gas estimation to correctly calculate intrinsic gas costs for access lists, improving the accuracy of gas cost predictions for affected transactions.
✏️ Tip: You can customize this high-level summary in your review settings.
The AccessList function in internal/ethapi/api.go was modified to assign the current iteration's access list to args.AccessList before performing gas estimation, ensuring DoEstimateGas correctly accounts for access list intrinsic gas costs. This reordering corrects the timing of when the access list is applied relative to gas calculation.
Changes
Cohort / File(s)
Summary
Gas estimation access list ordering internal/ethapi/api.go
Moved args.AccessList assignment before DoEstimateGas call to ensure gas estimation accounts for access list intrinsic costs; replaced later redundant assignment
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Verify the gas estimation logic correctly incorporates the access list when assigned at the new location
Confirm the removed later assignment was genuinely redundant and not serving an alternate purpose
Trace through loop iterations to ensure the reordering doesn't introduce state-ordering bugs
Poem
A rabbit hops through gas with glee,
Access lists now flow more free,
Before the math, the costs align,
Estimation now works fine! 🐰✨
The title 'Fix accessList' directly relates to the main change in the pull request, which is fixing the accessList assignment order in the AccessList function to ensure proper gas estimation.
Docstring Coverage
✅ Passed
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
Comment @coderabbitai help to get the list of available commands and usage tips.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Purpose or design rationale of this PR
...
2. PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
3. Deployment tag versioning
Has the version in
params/version.gobeen updated?4. Breaking change label
Does this PR have the
breaking-changelabel?Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.