mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-26 20:30:07 +00:00
Remove deprecated call
This commit is contained in:
parent
7c47a6b215
commit
c3b726cb99
@ -114,7 +114,7 @@ export class WakuRelay extends Gossipsub {
|
||||
*/
|
||||
public async send(message: WakuMessage): Promise<void> {
|
||||
const msg = message.encode();
|
||||
await super.publish(this.pubsubTopic, new Buffer(msg));
|
||||
await super.publish(this.pubsubTopic, Buffer.from(msg));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user