From c3fb8902d698cf26a5272483f15d32933ce77a7b Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Tue, 4 Jun 2024 11:28:56 +0200 Subject: [PATCH] fix: Bitcoin canister undefined functions (#648) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Motivation There was a typo in the `import` of the Candid IDL files (copy/paste of "minter" not updated to "bitcoin"). As a result, when using the library IRL, the functions of the actors were actually undefined. # Changes - Import Bitcoin DID IDL files # Screenshots Before: Capture d’écran 2024-06-04 à 09 33 44 After fix: Capture d’écran 2024-06-04 à 09 47 46 Signed-off-by: David Dal Busco --- packages/ckbtc/src/bitcoin.canister.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ckbtc/src/bitcoin.canister.ts b/packages/ckbtc/src/bitcoin.canister.ts index 2ec1ea68..7afedce6 100644 --- a/packages/ckbtc/src/bitcoin.canister.ts +++ b/packages/ckbtc/src/bitcoin.canister.ts @@ -3,8 +3,8 @@ import type { _SERVICE as BitcoinService, get_utxos_response, } from "../candid/bitcoin"; -import { idlFactory as certifiedIdlFactory } from "../candid/minter.certified.idl"; -import { idlFactory } from "../candid/minter.idl"; +import { idlFactory as certifiedIdlFactory } from "../candid/bitcoin.certified.idl"; +import { idlFactory } from "../candid/bitcoin.idl"; import { toGetUtxosParams, type GetUtxosParams } from "./types/bitcoin.params"; import type { CkBTCCanisterOptions } from "./types/canister.options";