Skip to content

Commit

Permalink
add check for test_rpc value
Browse files Browse the repository at this point in the history
  • Loading branch information
edobry committed Dec 10, 2024
1 parent 4f15a32 commit ae0da92
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superchain/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ func init() {
}

if replaceL1Rpc {
superchainEntry.Config.L1.PublicRPC = superchainEntry.Config.L1.TestRPC
testRpc := superchainEntry.Config.L1.TestRPC
if testRpc == "" {
panic(fmt.Errorf("missing test RPC endpoint for superchain %q", superchainEntry.Superchain))
}

superchainEntry.Config.L1.PublicRPC = testRpc
}

Superchains[superchainEntry.Superchain] = &superchainEntry
Expand Down

0 comments on commit ae0da92

Please sign in to comment.