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)); } /**