From 96d10c2e0255698b2932c2af1a847427c6161ff8 Mon Sep 17 00:00:00 2001 From: imsk17 Date: Thu, 3 Oct 2024 17:41:43 +0530 Subject: [PATCH] fix(icp): use correct idl for ledger in case of an agent --- src/handlers/icp/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/icp/index.ts b/src/handlers/icp/index.ts index 39fd4fd9..0eed989b 100644 --- a/src/handlers/icp/index.ts +++ b/src/handlers/icp/index.ts @@ -59,7 +59,7 @@ export async function createLedgerActor( host: undefined, }); } - return Actor.createActor(BridgeIdl, { + return Actor.createActor(LedgerIDL, { canisterId: contract, agent, });