From 67f852776b784a2a96f617840af795fba49823b9 Mon Sep 17 00:00:00 2001 From: decanus <7621705+decanus@users.noreply.github.com> Date: Tue, 22 Dec 2020 16:53:01 +0100 Subject: [PATCH] fix --- waku/v2/node/rpc/rpc_publish.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waku/v2/node/rpc/rpc_publish.nim b/waku/v2/node/rpc/rpc_publish.nim index fb83c2b62..b4971cd95 100644 --- a/waku/v2/node/rpc/rpc_publish.nim +++ b/waku/v2/node/rpc/rpc_publish.nim @@ -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