mirror of https://github.com/waku-org/nwaku.git
fix
This commit is contained in:
parent
73217b457c
commit
67f852776b
|
@ -5,7 +5,7 @@ import
|
||||||
eth/common as eth_common, eth/keys,
|
eth/common as eth_common, eth/keys,
|
||||||
system,
|
system,
|
||||||
options,
|
options,
|
||||||
../waku_types
|
../../waku_types
|
||||||
|
|
||||||
from strutils import rsplit
|
from strutils import rsplit
|
||||||
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||||
|
@ -28,7 +28,7 @@ var node = newRpcHttpClient()
|
||||||
waitfor node.connect("localhost", rpcPort)
|
waitfor node.connect("localhost", rpcPort)
|
||||||
|
|
||||||
let pubSubTopic = "/waku/2/default-waku/proto"
|
let pubSubTopic = "/waku/2/default-waku/proto"
|
||||||
let contentTopic = "foobar"
|
let contentTopic = ContentTopic(1)
|
||||||
var wakuMessage = WakuMessage(payload: input.toBytes(), contentTopic: contentTopic)
|
var wakuMessage = WakuMessage(payload: input.toBytes(), contentTopic: contentTopic)
|
||||||
# XXX This should be WakuMessage type, but need to setup JSON-RPC mapping for that to work
|
# XXX This should be WakuMessage type, but need to setup JSON-RPC mapping for that to work
|
||||||
var raw_bytes = wakuMessage.encode().buffer
|
var raw_bytes = wakuMessage.encode().buffer
|
||||||
|
|
Loading…
Reference in New Issue