From ff4fce646babfd53c64b454ccb3f07a808b16c76 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Mon, 10 Feb 2025 16:52:31 -0700 Subject: [PATCH] apparently the deprecated functional syntax did not receive this change --- .../candid_rpc/canister_methods/pre_upgrade/test/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts b/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts index 9bbe0f346d..4b8001a4e6 100644 --- a/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts +++ b/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts @@ -113,7 +113,7 @@ function generateGetPreUpgradeExecutedCanisterMethod(): QueryMethod { globalDeclarations: [], sourceCode: /*TS*/ `getPreUpgradeExecuted: query([], Opt(bool),() => { const result = stable.get(PRE_UPGRADE_HOOK_EXECUTED) - if (result === undefined) { + if (result === null) { return None } else { return Some(result)