mirror of https://github.com/waku-org/js-waku.git
refact: move default value to function signature
This commit is contained in:
parent
5eec4564fe
commit
a58691aabd
|
@ -215,12 +215,12 @@ export class Nwaku {
|
|||
|
||||
async sendMessage(
|
||||
message: WakuRelayMessage,
|
||||
pubSubTopic?: string
|
||||
pubSubTopic: string = DefaultPubSubTopic
|
||||
): Promise<boolean> {
|
||||
this.checkProcess();
|
||||
|
||||
return this.rpcCall<boolean>("post_waku_v2_relay_v1_message", [
|
||||
pubSubTopic ? pubSubTopic : DefaultPubSubTopic,
|
||||
pubSubTopic,
|
||||
message,
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue