Skip to content

Commit

Permalink
fix: rpc endpoint logic in deploy script (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightning-li authored Jan 15, 2025
1 parent bef47bb commit 9d64ab5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE2_SALT=
### The owner of the SP1 Verifier Gateway. This is the account that will be able to add and freeze routes.
OWNER=

### The chains to deploy to, specified by chain name (e.g. CHAINS=mainnet,sepolia,arbitrum_sepolia)
### The chains to deploy to, specified by chain name (e.g. CHAINS=MAINNET,SEPOLIA,ARBITRUM_SEPOLIA)
CHAINS=

### RPCs for each chain ID
Expand Down
4 changes: 2 additions & 2 deletions contracts/script/utils/Base.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ abstract contract BaseScript is Script {
string[] memory chains = vm.envString("CHAINS", ",");
for (uint256 i = 0; i < chains.length; i++) {
string memory chain = chains[i];

string memory rpcEndpoint = vm.envString(string.concat("RPC_", chain));
// Switch to the chain using the RPC
vm.createSelectFork(chain);
vm.createSelectFork(rpcEndpoint);

console.log("Running %s script on %s", KEY, chain);

Expand Down

0 comments on commit 9d64ab5

Please sign in to comment.