From 28dfaad588017fa211e565ece31a55526ed7f888 Mon Sep 17 00:00:00 2001 From: kdeme Date: Wed, 24 Apr 2019 15:35:29 +0200 Subject: [PATCH] Fix web3_sha3 --- nimbus/rpc/common.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimbus/rpc/common.nim b/nimbus/rpc/common.nim index e85272b9f..d47c287e7 100644 --- a/nimbus/rpc/common.nim +++ b/nimbus/rpc/common.nim @@ -17,5 +17,5 @@ proc setupCommonRPC*(server: RpcServer) = result = NimbusIdent server.rpc("web3_sha3") do(data: HexDataStr) -> string: - var rawdata = nimcrypto.fromHex(data.string) + var rawdata = nimcrypto.fromHex(data.string[2 .. ^1]) result = "0x" & $keccak_256.digest(rawdata)