Skip to content

fix: stop stdStorage access recording - #906

Merged
DaniPopes merged 1 commit into
masterfrom
centaur/stop-stdstorage-recording-1787712659
Aug 26, 2026
Merged

fix: stop stdStorage access recording#906
DaniPopes merged 1 commit into
masterfrom
centaur/stop-stdstorage-recording-1787712659

Conversation

@decofe

@decofe decofe commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Motivation

stdStorage.find starts storage-access recording but leaves it enabled after reading the results. This keeps Foundry on the inspector slow path for the remainder of any test that uses stdstore or ERC20 deal. This addresses the forge-std side of foundry-rs/foundry#16376.

Solution

Call vm.stopRecord() immediately after retrieving the recorded accesses, and add a regression test proving subsequent storage reads are not recorded.

Testing

  • forge fmt --check
  • forge test (207 passed)

Prompted by: @DaniPopes

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
@DaniPopes
DaniPopes enabled auto-merge (squash) August 26, 2026 02:53
@DaniPopes
DaniPopes merged commit da5b326 into master Aug 26, 2026
20 checks passed
@DaniPopes
DaniPopes deleted the centaur/stop-stdstorage-recording-1787712659 branch August 26, 2026 02:54
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