enc fix
This commit is contained in:
parent
747bce3cf1
commit
8b25f05e6c
1 changed files with 2 additions and 2 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue