-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support rotating API keys for fork tests #1643
Comments
got rate-limited by alchemy, let's turn this issue into a feature request to rotate API keys similar to ethers gakonst/ethers-rs#1017 |
@mattsse Any chance you could explain how one would use this feature when using |
this issue was about how we rotate keys internally in foundry not in solidity, but this is implemented via a counter + modulo of the number of keys you have: like: let keys = [...];
let mut counter = 0;
fn next_key() {
let key = keys[counter % keys.len()];
counter += 1;
return key;
} |
Got it. I could probably hack together something similar though to use in my forge tests. Thanks! |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
master 23dc073
What command(s) is the bug in?
cargo test --locked --workspace --all-features --lib --bins
Operating System
Linux
Describe the bug
fork tests seem to be failing on the CI but work locally https://github.com/foundry-rs/foundry/runs/6468348691?check_suite_focus=true
The text was updated successfully, but these errors were encountered: