Skip to content

Commit

Permalink
fix: deploy script change
Browse files Browse the repository at this point in the history
  • Loading branch information
Itshyphen committed Sep 12, 2024
1 parent 8c9fc87 commit 6d25960
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/evm/deploy_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ source .env
valid_actions=("deploy" "upgrade" "configure")
valid_contracts=("callservice" "mock" "wormhole" "layerzero" "centralized")
valid_environments=("mainnet" "testnet" "local")
valid_mainnet_chains=("ethereum" "binance" "avalanche" "arbitrum" "optimism" "base" "all")
valid_testnet_chains=("sepolia" "bsctest" "fuji" "base_sepolia" "optimism_sepolia" "arbitrum_sepolia" "all")
valid_mainnet_chains=("ethereum" "binance" "avalanche" "arbitrum" "optimism" "base" "polygon" "all")
valid_testnet_chains=("polygon_amoy" "sepolia" "bsctest" "fuji" "base_sepolia" "optimism_sepolia" "arbitrum_sepolia" "all")
valid_local_chains=("local" "all")

# Initialize variables
Expand Down Expand Up @@ -117,7 +117,7 @@ if [ "$action" == "deploy" ]; then
for chain in "${chains[@]}"; do
echo "Deploying on $chain"
rm -rf out
if [ "$chain" == "local" ] || [ "$chain" == "base-sepolia" ]; then
if [ "$chain" == "local" ] || [ "$chain" == "base_sepolia" ]; then
forge script DeployCallService -s "deployContract(string memory env, string memory chain, string memory contractA)" $env $chain $contract --fork-url $chain --broadcast --sender ${ADMIN} --ffi
else
forge script DeployCallService -s "deployContract(string memory env, string memory chain, string memory contractA)" $env $chain $contract --fork-url $chain --broadcast --sender ${ADMIN} --verify --etherscan-api-key $chain --ffi
Expand All @@ -130,7 +130,7 @@ elif [ "$action" == "upgrade" ]; then
echo "Upgrading on $chain"
if [ "$contract" == "mock" ]; then
echo "Mock Contract is not upgradeable!"
elif [ "$chain" == "local" ] || [ "$chain" == "base-sepolia" ]; then
elif [ "$chain" == "local" ] || [ "$chain" == "base_sepolia" ]; then
forge script DeployCallService -s "upgradeContract(string memory chain, string memory contractName, string memory contractA)" $chain $contractVersion $contract --fork-url $chain --broadcast --sender ${ADMIN} --ffi
else
forge script DeployCallService -s "upgradeContract(string memory chain, string memory contractName, string memory contractA)" $chain $contractVersion $contract --fork-url $chain --broadcast --sender ${ADMIN} --verify --etherscan-api-key $chain --ffi
Expand Down

0 comments on commit 6d25960

Please sign in to comment.