Skip to content

feat(database): add storage getter to BundleState#3321

Merged
rakita merged 1 commit intobluealloy:mainfrom
mattsse:matt/bundle-state-storage-getter
Jan 20, 2026
Merged

feat(database): add storage getter to BundleState#3321
rakita merged 1 commit intobluealloy:mainfrom
mattsse:matt/bundle-state-storage-getter

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Jan 16, 2026

Adds a storage() convenience method to BundleState that retrieves a storage value by address and key.

This mirrors the pattern in reth's ExecutionOutcome where account(), storage(), and bytecode() methods exist for convenient state access.

pub fn storage(&self, address: &Address, storage_key: StorageKey) -> Option<StorageValue> {
    self.account(address)
        .and_then(|account| account.storage_slot(storage_key))
}

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 16, 2026

Merging this PR will not alter performance

✅ 173 untouched benchmarks


Comparing mattsse:matt/bundle-state-storage-getter (e578b01) with main (ecd3fc5)

Open in CodSpeed

@rakita rakita merged commit 849338d into bluealloy:main Jan 20, 2026
31 checks passed
@github-actions github-actions bot mentioned this pull request Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants