bug: redirect tlv entry

This commit is contained in:
2023-02-16 16:32:56 +00:00
parent cafd820fd9
commit 3b68153105
3 changed files with 56 additions and 11 deletions

View File

@ -41,7 +41,7 @@ export function parseId(id: string) {
}
export function bech32ToHex(str: string) {
const nKey = bech32.decode(str);
const nKey = bech32.decode(str, 1_000);
const buff = bech32.fromWords(nKey.words);
return secp.utils.bytesToHex(Uint8Array.from(buff));
}