Skip to content

Commit

Permalink
canister_id has to be string
Browse files Browse the repository at this point in the history
  • Loading branch information
ninegua committed Sep 4, 2021
1 parent 22e926b commit 8f4d21c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async function prepare_send(message) {
pre.innerText = "Unsupported message format";
return;
}
const canister_id = new Principal(ingress.content.canister_id);
const canister_id = new Principal(ingress.content.canister_id).toString();
const args = await try_decode(
canister_id,
ingress.content.method_name,
Expand All @@ -172,7 +172,7 @@ async function prepare_send(message) {
"\nSender : " +
new Principal(ingress.content.sender).toString() +
"\nCanister id : " +
canister_id.toString() +
canister_id +
"\nMethod name : " +
ingress.content.method_name +
"\nArguments : " +
Expand Down

0 comments on commit 8f4d21c

Please sign in to comment.