mirror of https://github.com/waku-org/js-waku.git
fix: options can be undefined
This commit is contained in:
parent
7ea98c1af0
commit
5ca3957b39
|
@ -78,7 +78,7 @@ export class WakuRelay extends Gossipsub {
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
libp2p,
|
libp2p,
|
||||||
Object.assign(options, {
|
Object.assign(options ?? {}, {
|
||||||
// Ensure that no signature is included nor expected in the messages.
|
// Ensure that no signature is included nor expected in the messages.
|
||||||
globalSignaturePolicy: SignaturePolicy.StrictNoSign,
|
globalSignaturePolicy: SignaturePolicy.StrictNoSign,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue