From e48d2939d757b12c963de81df8db3a9099790350 Mon Sep 17 00:00:00 2001 From: Seth Date: Mon, 1 Apr 2024 18:55:30 +0800 Subject: [PATCH] chore(deployment): support ledger in deploy script --- bin/deploy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/deploy.sh b/bin/deploy.sh index 8499c50..2965530 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -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