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
However, it never specifies how to run a script using these aliases; the only way it shows is how to manually specify the rpc url: forge script script/NFT.s.sol:MyScript --rpc-url $GOERLI_RPC_URL --broadcast --verify -vvvv
Is there a way to run the script and just have the rpc url and etherscan api key be loaded via the chain alias without specifying the rpc url in the script command?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the scripting docs, it instructs on how to specify rpc config based on aliases:
However, it never specifies how to run a script using these aliases; the only way it shows is how to manually specify the rpc url:
forge script script/NFT.s.sol:MyScript --rpc-url $GOERLI_RPC_URL --broadcast --verify -vvvv
Is there a way to run the script and just have the rpc url and etherscan api key be loaded via the chain alias without specifying the rpc url in the script command?
Beta Was this translation helpful? Give feedback.
All reactions