Skip to content

Commit

Permalink
Revert erroneous candid blob encoding change (#2436)
Browse files Browse the repository at this point in the history
In #2425 a change was introduced assuming that `blob` types are handled
differently with `dfx` 0.19.0. However, this change only affected printing
hex values and not encoding. Hence the change introduced a bug that is
reverted with this PR.
  • Loading branch information
frederikrothenberger committed Apr 17, 2024
1 parent 8cbe7a1 commit 93b5fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy-archive
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ then
network_arg+=( "--network" "$network")
fi

dfx canister "${network_arg[@]}" call "$canister_id" deploy_archive --argument-file <(echo "(blob \"$(hexdump -ve '1/1 "%.2x"' "$wasm")\")")
dfx canister "${network_arg[@]}" call "$canister_id" deploy_archive --argument-file <(echo "(blob \"$(hexdump -ve '1/1 "%.2x"' "$wasm" | sed 's/../\\&/g')\")")

0 comments on commit 93b5fed

Please sign in to comment.