From 23e6b5cab7dbfeb9964c5b32362e5c02caaa5dc3 Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Wed, 18 Sep 2024 12:35:58 -0600 Subject: [PATCH] fix some management canister issues --- src/lib/stable/ic_apis/call.ts | 2 +- .../candid_rpc/class_syntax/call_raw/package-lock.json | 1 + .../end_to_end/candid_rpc/class_syntax/call_raw/src/index.ts | 2 +- .../functional_syntax/management_canister/src/index.ts | 4 +++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/stable/ic_apis/call.ts b/src/lib/stable/ic_apis/call.ts index fca00dd2ff..4d7c0213bb 100644 --- a/src/lib/stable/ic_apis/call.ts +++ b/src/lib/stable/ic_apis/call.ts @@ -2,7 +2,7 @@ import { IDL } from '@dfinity/candid'; import { Principal } from '@dfinity/principal'; import { v4 } from 'uuid'; // TODO is uuid experimental? -export async function call( +export async function call( canisterId: Principal | string, method: string, options?: { diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/package-lock.json b/tests/end_to_end/candid_rpc/class_syntax/call_raw/package-lock.json index 14237e5fd7..8e97d23adf 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/call_raw/package-lock.json +++ b/tests/end_to_end/candid_rpc/class_syntax/call_raw/package-lock.json @@ -17,6 +17,7 @@ } }, "../../functional_syntax/call_raw": { + "name": "call_raw_end_to_end_test_functional_syntax", "dev": true, "dependencies": { "azle": "0.24.1" diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/src/index.ts b/tests/end_to_end/candid_rpc/class_syntax/call_raw/src/index.ts index eaa0968425..275055b661 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/call_raw/src/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/call_raw/src/index.ts @@ -8,7 +8,7 @@ export default class { candidArgs: string, payment: bigint ): Promise { - const result = await call(canisterId, method, { + const result = await call(canisterId, method, { raw: candidEncode(candidArgs), payment }); diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/index.ts b/tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/index.ts index 2ba98da279..04d2e0bd8a 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/index.ts +++ b/tests/end_to_end/candid_rpc/functional_syntax/management_canister/src/index.ts @@ -53,9 +53,11 @@ export default Canister({ settings: { controllers: [], compute_allocation: [1n], + log_visibility: [], memory_allocation: [3_000_000n], freezing_threshold: [2_000_000n], - reserved_cycles_limit: [] + reserved_cycles_limit: [], + wasm_memory_limit: [] }, sender_canister_version: [] }