mirror of https://github.com/waku-org/js-waku.git
Remove dupe code
This commit is contained in:
parent
f2a2233c77
commit
381333347e
|
@ -19,12 +19,7 @@ export class WakuMessage {
|
|||
timestamp: Date = new Date()
|
||||
): WakuMessage {
|
||||
const payload = Buffer.from(utf8, 'utf-8');
|
||||
return new WakuMessage({
|
||||
payload,
|
||||
version: DefaultVersion,
|
||||
contentTopic,
|
||||
timestamp: timestamp.valueOf() / 1000,
|
||||
});
|
||||
return WakuMessage.fromBytes(payload, contentTopic, timestamp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue