Skip to content

Conversation

sashass1315
Copy link
Contributor

This change replaces the ephemeral temp directory used for Etherscan source retrieval with a persistent cache path at ~/.foundry/cache/etherscan//sources/

. We use the standard Foundry cache location exposed by foundry_config to align with existing caching practices and to avoid repeatedly downloading and writing the same source tree. If creating the cache directory fails (e.g., permissions), we safely fall back to a temp directory. The compilation flow and behavior remain unchanged (no artifacts, same solc selection logic). This improves performance on subsequent runs, reduces unnecessary I/O, and keeps caching consistent with the project’s existing Etherscan client caching strategy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant