File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22fs_permissions = [{ access = " read-write" , path = " ./" }]
33
44[rpc_endpoints ]
5- # The RPC URLs below match the StdChains URLs but append a trailing slash for testing.
6- mainnet = " https://api.mycryptoapi.com/eth/ "
7- optimism_goerli = " https://goerli.optimism.io/"
8- arbitrum_one_goerli = " https://goerli-rollup.arbitrum.io/rpc/"
5+ # The RPC URLs are modified versions of the default for testing initialization .
6+ mainnet = " https://mainnet.infura.io/v3/7a8769b798b642f6933f2ed52042bd70 " # Different API key.
7+ optimism_goerli = " https://goerli.optimism.io/" # Adds a trailing slash.
8+ arbitrum_one_goerli = " https://goerli-rollup.arbitrum.io/rpc/" # Adds a trailing slash.
99
1010[fmt ]
1111# These are all the `forge fmt` defaults.
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ abstract contract StdCheatsSafe {
210210 // Initialize `stdChains` with the defaults.
211211 stdChains["anvil " ] = Chain ("Anvil " , 31337 , "http://127.0.0.1:8545 " );
212212 stdChains["hardhat " ] = Chain ("Hardhat " , 31337 , "http://127.0.0.1:8545 " );
213- stdChains["mainnet " ] = Chain ("Mainnet " , 1 , "https://api.mycryptoapi.com/eth " );
213+ stdChains["mainnet " ] = Chain ("Mainnet " , 1 , "https://mainnet.infura.io/v3/6770454bc6ea42c58aac12978531b93f " );
214214 stdChains["goerli " ] = Chain ("Goerli " , 5 , "https://goerli.infura.io/v3/6770454bc6ea42c58aac12978531b93f " );
215215 stdChains["sepolia " ] = Chain ("Sepolia " , 11155111 , "https://rpc.sepolia.dev " );
216216 stdChains["optimism " ] = Chain ("Optimism " , 10 , "https://mainnet.optimism.io " );
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ contract StdCheatsTest is Test {
229229
230230 function testChainRpcInitialization () public {
231231 // RPCs specified in `foundry.toml` should be updated.
232- assertEq (stdChains["mainnet " ].rpcUrl, "https://api.mycryptoapi.com/eth/ " );
232+ assertEq (stdChains["mainnet " ].rpcUrl, "https://mainnet.infura.io/v3/7a8769b798b642f6933f2ed52042bd70 " );
233233 assertEq (stdChains["optimism_goerli " ].rpcUrl, "https://goerli.optimism.io/ " );
234234 assertEq (stdChains["arbitrum_one_goerli " ].rpcUrl, "https://goerli-rollup.arbitrum.io/rpc/ " );
235235
You can’t perform that action at this time.
0 commit comments