Skip to content

Commit

Permalink
enc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
boufni95 committed Aug 31, 2024
1 parent 747bce3 commit 8b25f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/custom-nip19.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export const encodeNoffer = (offer: OfferPointer): string => {
const data = encodeTLV({
0: [hexToBytes(offer.pubkey)],
1: (relays).map(url => utf8Encoder.encode(url)),
2: [hexToBytes(offer.offer)]
2: [utf8Encoder.encode(offer.offer)]
});
const words = bech32.toWords(data)
return bech32.encode("nprofile", words, 5000);
return bech32.encode("noffer", words, 5000);
}

const parseTLV = (data: Uint8Array): TLV => {
Expand Down

0 comments on commit 8b25f05

Please sign in to comment.