Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions evm/sh/deployExecutor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ if [ "${EVM_CHAIN_ID}X" == "X" ]; then
EVM_CHAIN_ID=1337
fi

if [ -n "${CREATE2_ADDRESS}" ]; then
CREATE2_FLAG="--create2-deployer ${CREATE2_ADDRESS}"
echo "Using custom CREATE2 deployer at: ${CREATE2_ADDRESS}"
else
CREATE2_FLAG=""
echo "Using default CREATE2 deployer"
fi

forge script ./script/DeployExecutor.s.sol:DeployExecutor \
--sig "run(uint16)" $OUR_CHAIN_ID \
--rpc-url "$RPC_URL" \
--private-key "$MNEMONIC" \
$CREATE2_FLAG \
--broadcast ${FORGE_ARGS}

returnInfo=$(cat ./broadcast/DeployExecutor.s.sol/$EVM_CHAIN_ID/run-latest.json)
Expand Down
Loading