mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
Fix web3_sha3
This commit is contained in:
parent
e8a997cf11
commit
28dfaad588
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user