diff --git a/tests/rpcclient/ethcallsigs.nim b/tests/rpcclient/ethcallsigs.nim index 03df7edb3..f881e7df6 100644 --- a/tests/rpcclient/ethcallsigs.nim +++ b/tests/rpcclient/ethcallsigs.nim @@ -27,7 +27,7 @@ proc eth_gasPrice(): HexQuantityStr proc eth_accounts(): seq[EthAddressStr] proc eth_blockNumber(): HexQuantityStr proc eth_getBalance(data: EthAddressStr, quantityTag: string): HexQuantityStr -proc eth_getStorageAt(data: EthAddressStr, quantity: HexQuantityStr, quantityTag: string): seq[byte] +proc eth_getStorageAt(data: EthAddressStr, quantity: HexQuantityStr, quantityTag: string): HexDataStr proc eth_getTransactionCount(data: EthAddressStr, quantityTag: string): HexQuantityStr proc eth_getBlockTransactionCountByHash(data: Hash256): HexQuantityStr proc eth_getBlockTransactionCountByNumber(quantityTag: string): HexQuantityStr diff --git a/tests/test_rpc.nim b/tests/test_rpc.nim index b2440a0d9..a946ba3ed 100644 --- a/tests/test_rpc.nim +++ b/tests/test_rpc.nim @@ -258,7 +258,7 @@ proc rpcMain*() = test "eth_getStorageAt": let res = await client.eth_getStorageAt(ethAddressStr("0xfff33a3bd36abdbd412707b8e310d6011454a7ae"), hexQuantityStr "0x0", "0x0") - check hexDataStr(0.u256).string == hexDataStr(res).string + check hexDataStr(0.u256).string == res.string test "eth_getTransactionCount": let res = await client.eth_getTransactionCount(ethAddressStr("0xfff7ac99c8e4feb60c9750054bdc14ce1857f181"), "0x0")