migrate to jsr dependencies for @noble and @scure.

This commit is contained in:
fiatjaf
2026-01-27 23:54:50 -03:00
parent 3588d30044
commit 42c9c7554d
6 changed files with 10 additions and 9 deletions

View File

@@ -110,7 +110,7 @@ export function decode(nip19: NPub): DecodedNpub
export function decode(nip19: Note): DecodedNote
export function decode(code: string): DecodedResult
export function decode(code: string): DecodedResult {
let { prefix, words } = bech32.decode(code, Bech32MaxSize)
let { prefix, words } = bech32.decode(code as `${string}1${string}`, Bech32MaxSize)
let data = new Uint8Array(bech32.fromWords(words))
switch (prefix) {