Skip to content

Commit

Permalink
Add missing --arg-sha256 parameter to release
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis committed Nov 8, 2024
1 parent 2eae81c commit 6651395
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/nns-dapp/release
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ SHA="$(sha256sum <"$WASM" | awk '{print $1}')"
# Gets the canister arguments
ARG_DID="./release/nns-dapp-arg-${DFX_NETWORK}.did"
ARG_PATH="./release/nns-dapp-arg-${DFX_NETWORK}.bin"
ARG_PATH_HASH="$(sha256sum "$ARG_PATH" | cut -d ' ' -f 1)"
test -e "$ARG_DID" || {
echo "ERROR: Arguments need to be provided in $ARG_DID"
exit 1
Expand All @@ -139,7 +140,8 @@ test -e "${SUMMARY_FILE:-}" || {
} >&2

# Prepares the command
set ic-admin "${AUTH_ARGS[@]}" --nns-url "$DFX_NNS_URL" propose-to-change-nns-canister --proposer "$DFX_NEURON_ID" --canister-id "$NNS_DAPP_CANISTER_ID" --mode upgrade --wasm-module-path "$WASM" --summary-file "$SUMMARY_FILE" --wasm-module-sha256 "$SHA" --arg "$ARG_PATH"
set ic-admin "${AUTH_ARGS[@]}" --nns-url "$DFX_NNS_URL" propose-to-change-nns-canister --proposer "$DFX_NEURON_ID" --canister-id "$NNS_DAPP_CANISTER_ID" --mode upgrade --wasm-module-path "$WASM" --summary-file "$SUMMARY_FILE" --wasm-module-sha256 "$SHA" --arg "$ARG_PATH" --arg-sha256 "$ARG_PATH_HASH"

# ... just checking...
echo
echo PLEASE REVIEW THIS COMMAND:
Expand Down

0 comments on commit 6651395

Please sign in to comment.