-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Description
When trying to get an address' stake key, to_bech32()
returns the wrong result
const getAddressStakeKey = async (addr) => {
const base = BaseAddress.from_address(Address.from_bech32(addr));
const stake = base.stake_cred().to_keyhash().to_bech32("stake"); // Not the correct stake key
const stakeHex = toHex(base.stake_cred().to_keyhash().to_bytes()); // Correct!
return stake;
};
Metadata
Metadata
Assignees
Labels
No labels