This commit is contained in:
decanus 2020-12-22 16:53:01 +01:00
parent 73217b457c
commit 67f852776b
No known key found for this signature in database
GPG Key ID: 3730AAF5D6589867
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import
eth/common as eth_common, eth/keys,
system,
options,
../waku_types
../../waku_types
from strutils import rsplit
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
@ -28,7 +28,7 @@ var node = newRpcHttpClient()
waitfor node.connect("localhost", rpcPort)
let pubSubTopic = "/waku/2/default-waku/proto"
let contentTopic = "foobar"
let contentTopic = ContentTopic(1)
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
var raw_bytes = wakuMessage.encode().buffer