You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In config reference, rpc_endpoints is enable to take environment variable, like mainnet = "${RPC_MAINNET}".
However, it only available when env is exist or provide in command, i.e. RPC_MAINNET=https://... forge ..... It cannot take env which is set by cheatcode setEnv.
Use case is that: Read Alchemy API key through vm.setEnv and resolve in config for multiple fork.
I see, yeah, so basically what happens is that we try to resolve all of them when the test are started, I guess in this scenario we simply should try again when it is requested
Component
Forge
Describe the feature you would like
In config reference,
rpc_endpoints
is enable to take environment variable, likemainnet = "${RPC_MAINNET}"
.However, it only available when env is exist or provide in command, i.e.
RPC_MAINNET=https://... forge ....
. It cannot take env which is set by cheatcodesetEnv
.Use case is that: Read Alchemy API key through
vm.setEnv
and resolve in config for multiple fork.Additional context
No response
The text was updated successfully, but these errors were encountered: