Skip to content
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

Allowing for "untouching" touched/hot storage slots #2817

Closed
benesjan opened this issue Aug 17, 2022 · 1 comment
Closed

Allowing for "untouching" touched/hot storage slots #2817

benesjan opened this issue Aug 17, 2022 · 1 comment
Labels
A-evm Area: EVM T-feature Type: feature

Comments

@benesjan
Copy link

Component

Forge

Describe the feature you would like

Since tests are executed in 1 tx it happens that gas profiling returns lower gas costs than what would happen in mainnet environments because plenty of the slots are touched/hot. This would not happen on mainnet where various calls would most likely be executed in separate txs.

It would be useful to be able to reset the list of touched/hot slots so that tests can be better used for mainnet gas cost estimation.

Additional context

No response

@benesjan benesjan added the T-feature Type: feature label Aug 17, 2022
@gakonst gakonst added this to Foundry Aug 17, 2022
@gakonst gakonst moved this to Todo in Foundry Aug 17, 2022
@benesjan benesjan changed the title Allowing for "untoching" touched storaged slots Allowing for "untouching" touched/hot storage slots Aug 17, 2022
@rkrasiuk rkrasiuk added the A-evm Area: EVM label Aug 18, 2022
@onbjerg
Copy link
Member

onbjerg commented Aug 19, 2022

Duplicate #1340

@onbjerg onbjerg closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2022
Repository owner moved this from Todo to Done in Foundry Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-evm Area: EVM T-feature Type: feature
Projects
Archived in project
Development

No branches or pull requests

3 participants