From c6774956741ba54f87652b846e4634e4155475b8 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 11 Jul 2024 09:58:40 -0600 Subject: [PATCH] WIP --- examples/composite_queries/test/tests.ts | 2 +- src/lib/stable/ic_apis/call.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/composite_queries/test/tests.ts b/examples/composite_queries/test/tests.ts index faa1b107cc..dc198d6e8e 100644 --- a/examples/composite_queries/test/tests.ts +++ b/examples/composite_queries/test/tests.ts @@ -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'); diff --git a/src/lib/stable/ic_apis/call.ts b/src/lib/stable/ic_apis/call.ts index a95cb3473f..b2a202fd68 100644 --- a/src/lib/stable/ic_apis/call.ts +++ b/src/lib/stable/ic_apis/call.ts @@ -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]); }