Skip to content

Commit

Permalink
fix: install script
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Apr 16, 2024
1 parent f3b6b42 commit afd436d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion scripts/deploy_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ deploy_dip721() {
LOGO="\"$LOGO\""
fi

SUPPORTED_INTERFACES=$(for interface in $SUPPORTED_INTERFACES; do echo -n "variant { $interface }; "; done)
echo "SUPPORTED_INTERFACES: $SUPPORTED_INTERFACES"
SUPPORTED_INTERFACES=${SUPPORTED_INTERFACES%; }
echo "SUPPORTED_INTERFACES: $SUPPORTED_INTERFACES"

init_args="(record {
supported_interfaces = vec { $(for interface in $SUPPORTED_INTERFACES; do echo "variant { $interface }"; done) };
supported_interfaces = vec { $SUPPORTED_INTERFACES };
custodians = vec { principal \"$ADMIN_PRINCIPAL\" };
logo = $LOGO;
name = \"$NAME\";
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cd "$(dirname "$0")" || exit 1

CANISTER_IDS="../.dfx/local/canister_ids.json"
DIP721_PRINCIPAL="$(cat "$CANISTER_IDS" | jq -r '.dip721-canister.local')"
DIP721_PRINCIPAL=$(cat "$CANISTER_IDS" | jq -r '."dip721-canister".local')
SUPPORTED_INTERFACES="Mint Burn Approval TransactionHistory"
NAME="DIP721"
SYMBOL="DIP"
Expand All @@ -20,7 +20,7 @@ cd ../

set -e

deploy_dip721 "reinstall" "local" "$DEFERRED_PRINCIPAL" "$SUPPORTED_INTERFACES" "$NAME" "$SYMBOL"
deploy_dip721 "reinstall" "local" "$ADMIN_PRINCIPAL" "$SUPPORTED_INTERFACES" "$NAME" "$SYMBOL"

set +e

Expand Down

0 comments on commit afd436d

Please sign in to comment.