From 7ef68e81522fee09b09f4c8742504363349a9c06 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Tue, 22 May 2018 20:45:52 +0100 Subject: [PATCH] Updated sha3 sig & fix relative import issue (requires nimble install) --- eth-rpc/client/ethcallsigs.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eth-rpc/client/ethcallsigs.nim b/eth-rpc/client/ethcallsigs.nim index 75b6fbd..d10ef72 100644 --- a/eth-rpc/client/ethcallsigs.nim +++ b/eth-rpc/client/ethcallsigs.nim @@ -1,8 +1,10 @@ ## This module contains signatures for the Ethereum client RPCs. -import json, stint, ../ ethtypes +## The signatures are not imported directly, but read and processed with parseStmt, +## then a procedure body is generated to marshal native Nim parameters to json and visa versa. +import json, stint, eth-rpc / ethtypes proc web3_clientVersion(): string -proc web3_sha3(): string +proc web3_sha3(data: string): string proc net_version(): string proc net_peerCount(): int proc net_listening(): bool