From 001195341c9554339d37744aa8ab50db493ebe43 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 12 Jun 2018 09:53:48 +0300 Subject: [PATCH] Fix client.nim for latest changes in asyncdispatch2. --- eth-rpc/client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth-rpc/client.nim b/eth-rpc/client.nim index 581cba5..9a5d216 100644 --- a/eth-rpc/client.nim +++ b/eth-rpc/client.nim @@ -19,7 +19,7 @@ proc call*(self: RpcClient, name: string, ## Remotely calls the specified RPC method. let id = $self.nextId self.nextId.inc - let msg = $ %{"jsonrpc": %"2.0", "method": %name, "params": params, + var msg = $ %{"jsonrpc": %"2.0", "method": %name, "params": params, "id": %id} & "\c\l" let res = await self.transp.write(msg) # TODO: Add actions when not full packet was send, e.g. disconnect peer.