Skip to content

Commit

Permalink
Update Canlista getCandid interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ninegua committed Jul 17, 2021
1 parent 9f7305c commit 59980e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bare-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const getCandid_interface = ({ IDL }) =>
[IDL.Principal],
[
IDL.Variant({
ok: IDL.Text,
ok: IDL.Record({ did: IDL.Text, approvedByController: IDL.Bool }),
err: IDL.Variant({ noCandidFound: IDL.null }),
}),
],
Expand Down Expand Up @@ -245,7 +245,7 @@ async function try_decode(canister_id, method_name, reply) {
console.log(e);
}
if (did.ok) {
did = did.ok;
did = did.ok.did;
} else {
did = null;
}
Expand Down

0 comments on commit 59980e3

Please sign in to comment.