mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-06 15:43:12 +00:00
chore: fix format
This commit is contained in:
parent
bcbb770dd2
commit
c1fb1f52ca
@ -1,5 +1,5 @@
|
||||
import debug from "debug";
|
||||
import {proto_message, utils} from "js-waku";
|
||||
import { proto_message, utils } from "js-waku";
|
||||
import {
|
||||
Decoder,
|
||||
Encoder,
|
||||
@ -76,6 +76,6 @@ export class RLNDecoder implements Decoder<Message> {
|
||||
}
|
||||
|
||||
function toRLNSignal(msg: Message): Uint8Array {
|
||||
const contentTopicBytes = utils.utf8ToBytes(msg.contentTopic ?? "")
|
||||
const contentTopicBytes = utils.utf8ToBytes(msg.contentTopic ?? "");
|
||||
return new Uint8Array([...(msg.payload ?? []), ...contentTopicBytes]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user