Snapchain / op-chain-deployment

2 stars 0 forks source link

check if the `multicall` contract is already deployed. skip if it is #9

Closed bap2pecs closed 1 month ago

bap2pecs commented 1 month ago

https://github.com/Snapchain/op-chain-deployment/blob/main/scripts/l2-bridge-deploy-l1-multicall.sh#L12

# TODO: check if the contract is already deployed. skip if it is
# - use cast to get the chain id using L1_RPC_URL
# - curl https://raw.githubusercontent.com/mds1/multicall/main/deployments.json
# - check if the chain id is in the deployments.json file
# - if it exists, retrieve the address from the `url` field of the json response and put in the env file