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

no_storage_caching does't work as expected #7866

Open
Nireyflip opened this issue May 6, 2024 · 0 comments
Open

no_storage_caching does't work as expected #7866

Nireyflip opened this issue May 6, 2024 · 0 comments
Labels
T-feature Type: feature

Comments

@Nireyflip
Copy link

Component

Forge

Describe the feature you would like

Hi guys, I fetched the lastest master branch of foundry and built forge to run a test, I found no_storage_caching flag did not work as I set "no_storage_caching = true" in foundry.toml, the block I specified in test sol file was still fetched to local as a cache. I searched in foundry code and found that no_storage_caching does't seem to work any more which is replaced by fork.enable_caching in evm/core/src fork/multi.rs

let cache_path = if fork.enable_caching {
    Config::foundry_block_cache_dir(meta.cfg_env.chain_id, number)
} else {
    None
};

Am I correct in understanding that? If so, is there a way for me to disable the cache through configuration? This would be useful during debugging : )

Additional context

No response

@Nireyflip Nireyflip added the T-feature Type: feature label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-feature Type: feature
Projects
None yet
Development

No branches or pull requests

1 participant