Skip to content

PrincipalId instead of String for canisters #655

@peterpeterparker

Description

@peterpeterparker

Motivation

@AntonioVentilii noticed that the documentation of the canister is incorrect: https://juno.build/docs/reference/functions/typescript/canisters#icrc-ledger

The canisterId: "your-icrc-ledger-canister-id" should be a Principal, not string (this is asserted by a Zod schema)

Alternative

I enhance the library to accept string (PrincipalSchema | PrincipalTextSchma)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions