Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jul 12, 2024
1 parent d455a91 commit c677495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/composite_queries/test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function getTests(canister1: ActorSubclass<_SERVICE>): Test {
expect(result).toBe('Hello from Canister 2');
});

it('performs a simple manual query', async () => {
it.only('performs a simple manual query', async () => {
const result = await canister1.manualQuery();

expect(result).toBe('Hello from Canister 2 manual query');
Expand Down
4 changes: 4 additions & 0 deletions src/lib/stable/ic_apis/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export async function call(
resolve(new Uint8Array(result));
} else {
const idl = returnIdl === undefined ? [] : [returnIdl];
console.log(returnIdl);
console.log(result);
console.log(IDL.decode(idl, result));
console.log(IDL.decode(idl, result)[0]);
resolve(IDL.decode(idl, result)[0]);
}

Expand Down

0 comments on commit c677495

Please sign in to comment.