mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-07 16:13:07 +00:00
fix: correct import
This commit is contained in:
parent
b1dbf16b35
commit
b83427ccfb
@ -1,5 +1,5 @@
|
|||||||
import { Encoder, Message, ProtoMessage } from "js-waku/lib/interfaces";
|
import { Encoder, Message, ProtoMessage } from "js-waku/lib/interfaces";
|
||||||
import * as proto from "js-waku/src/proto/message";
|
import { proto_message } from "js-waku";
|
||||||
|
|
||||||
import { RLNInstance } from "./rln.js";
|
import { RLNInstance } from "./rln.js";
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ export class RLNEncoder implements Encoder {
|
|||||||
const protoMessage = await this.encodeProto(message);
|
const protoMessage = await this.encodeProto(message);
|
||||||
if (!protoMessage) return;
|
if (!protoMessage) return;
|
||||||
|
|
||||||
return proto.WakuMessage.encode(protoMessage);
|
return proto_message.WakuMessage.encode(protoMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
toRLNSignal(msg: Message): Uint8Array {
|
toRLNSignal(msg: Message): Uint8Array {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user