Snapchain / op-chain-deployment

2 stars 0 forks source link

add check to make sure L1 chain ID is not 900 or 1337 #10

Closed bap2pecs closed 1 month ago

bap2pecs commented 1 month ago

Summary

see the comments in code

one decision to make is whether to put it here or in l1-configure.sh

I thought about it and I think it's better to put it directly in the step where l2 contracts are deployed b/c the l1 used might not be deployed using this repo

Test Plan

set l1 chain id to 900

$ ./scripts/l2-deploy-l1-contracts.sh
Error: L1_CHAIN_ID cannot be 900 or 1337