Skip to content

Commit

Permalink
add comment about principal problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Nov 7, 2023
1 parent f412b8e commit 912f404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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()}')`;
}
1 change: 1 addition & 0 deletions property_tests/arbitraries/canister_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function CanisterArb(testArb: fc.Arbitrary<TestSample>) {
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}
Expand Down

0 comments on commit 912f404

Please sign in to comment.