From c3b726cb99354a14fbaa74056c0dc27d21ab4930 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 5 Jul 2021 15:50:45 +1000 Subject: [PATCH] Remove deprecated call --- src/lib/waku_relay/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/waku_relay/index.ts b/src/lib/waku_relay/index.ts index 784935e918..f5d5266d0e 100644 --- a/src/lib/waku_relay/index.ts +++ b/src/lib/waku_relay/index.ts @@ -114,7 +114,7 @@ export class WakuRelay extends Gossipsub { */ public async send(message: WakuMessage): Promise { const msg = message.encode(); - await super.publish(this.pubsubTopic, new Buffer(msg)); + await super.publish(this.pubsubTopic, Buffer.from(msg)); } /**