rosetta-client icon indicating copy to clipboard operation
rosetta-client copied to clipboard

principal_id_to_address Breaking - pid.toBlob is not a function

Open qalqi opened this issue 3 years ago • 0 comments

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/[email protected] and was working at @dfinity/[email protected]

qalqi avatar Jun 14 '21 06:06 qalqi