deploy: a1c446203dc82a8396daa445ed5b9d64b43ffde8

This commit is contained in:
decanus 2020-12-22 16:08:07 +00:00
parent df587f2bda
commit c6eb5ddac7

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