From 912f404ab631b4f621f7234a820f9bd89d39e6b5 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 7 Nov 2023 14:06:34 -0700 Subject: [PATCH] add comment about principal problem --- property_tests/arbitraries/candid/to_src_literal/principal.ts | 1 + property_tests/arbitraries/canister_arb.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/property_tests/arbitraries/candid/to_src_literal/principal.ts b/property_tests/arbitraries/candid/to_src_literal/principal.ts index b1663d2146..d4aa6e47ee 100644 --- a/property_tests/arbitraries/candid/to_src_literal/principal.ts +++ b/property_tests/arbitraries/candid/to_src_literal/principal.ts @@ -1,5 +1,6 @@ import { Principal } from '@dfinity/principal'; export function principalToSrcLiteral(value: Principal): string { + // TODO solve the underlying principal problem https://github.com/demergent-labs/azle/issues/1443 return `DfinityPrincipal.fromText('${value.toText()}')`; } diff --git a/property_tests/arbitraries/canister_arb.ts b/property_tests/arbitraries/canister_arb.ts index efcdeef17d..51109aaa1e 100644 --- a/property_tests/arbitraries/canister_arb.ts +++ b/property_tests/arbitraries/canister_arb.ts @@ -37,6 +37,7 @@ export function CanisterArb(testArb: fc.Arbitrary) { sourceCode: ` import { Canister, query, ${imports.join(', ')} } from 'azle'; import { deepEqual } from 'fast-equals'; + // TODO solve the underlying principal problem https://github.com/demergent-labs/azle/issues/1443 import { Principal as DfinityPrincipal } from '@dfinity/principal'; ${candidTypeDeclarations}