Skip to content

feat: CreateAccessList with stateOverrides (#31497)#57

Merged
eomti-wm merged 1 commit intodevfrom
feat/create_accessList_stateOverrides
Feb 11, 2026
Merged

feat: CreateAccessList with stateOverrides (#31497)#57
eomti-wm merged 1 commit intodevfrom
feat/create_accessList_stateOverrides

Conversation

@eomti-wm
Copy link
Contributor

Summary

Add support for state overrides in eth_createAccessList, aligning it with other execution methods like eth_call and eth_estimateGas that already support this feature.

Upstream reference: ethereum/go-ethereum#31497

Changes

internal/ethapi/api.go

  • Add stateOverrides *StateOverride parameter to CreateAccessList and AccessList functions
  • Apply state overrides immediately after StateAndHeaderByNumberOrHash and before setDefaults to prevent conflicts between user-specified values (e.g., nonce) and database defaults

internal/ethapi/api_test.go

  • Add TestCreateAccessListWithStateOverrides to verify access list creation with state overrides (code, balance, nonce, storage)

Motivation

Previously, eth_createAccessList did not support state overrides, making it inconsistent with eth_call and eth_estimateGas. This prevented users from generating accurate access lists when simulating transactions against modified state (e.g., deployed contract code at an address, modified storage values).

Add support for state overrides in eth_createAccessList. This will make the method consistent
with other execution methods.

---------

Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
@eomti-wm eomti-wm self-assigned this Feb 11, 2026
@eomti-wm eomti-wm added the enhancement New feature or request label Feb 11, 2026
Copy link
Contributor

@code0xff code0xff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eomti-wm eomti-wm merged commit 6e41d96 into dev Feb 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants