Skip to content

Commit

Permalink
chore(deployment): support ledger in deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
superical committed Apr 1, 2024
1 parent 7eeac0d commit e48d293
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ if [[ "$4" != "" && "$5" != -* ]]; then
fi

# forge command
COMMAND="forge script \"$SCRIPT\" --broadcast -i 1 -f \"$NETWORK\" --sender \"$DEPLOYER_ADDRESS\""
COMMAND="forge script \"$SCRIPT\" --broadcast -f \"$NETWORK\" --sender \"$DEPLOYER_ADDRESS\""

if [ "$VERIFY" -eq 1 ]; then
COMMAND="$COMMAND --verify"
fi

if [ ! -z "$OA_LEDGER" ]; then
COMMAND="$COMMAND --ledger --hd-paths \"$OA_LEDGER\""
else
COMMAND="$COMMAND -i 1"
fi

if [ ! -z "$SIG" ]; then
COMMAND="$COMMAND -s \"$SIG\""
if [ ! -z "${SIG_PARAMS[*]}" ]; then
Expand Down

0 comments on commit e48d293

Please sign in to comment.