Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

principal_id_to_address Breaking - pid.toBlob is not a function #49

@qalqi

Description

@qalqi

Error

TypeError: pid.toBlob is not a function

for js

import { Ed25519KeyIdentity } from '@dfinity/identity';

const keypair = Ed25519KeyIdentity.generate();
console.log(address_to_hex(principal_id_to_address(keypair.getPrincipal()))); 
//7xxxxxxxxxxxxxxxxxx

breaking with @dfinity/agent@0.9.1 and was working at @dfinity/agent@0.9.0

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