From 4a57089ed2308899ee2252c5f2f999d6252ca5df Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Sun, 3 Mar 2024 06:29:58 +0100 Subject: [PATCH] Fix warnings --- testmodule/providers/jsonrpc/testConversions.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testmodule/providers/jsonrpc/testConversions.nim b/testmodule/providers/jsonrpc/testConversions.nim index c29810a..170a754 100644 --- a/testmodule/providers/jsonrpc/testConversions.nim +++ b/testmodule/providers/jsonrpc/testConversions.nim @@ -134,7 +134,7 @@ suite "JSON Conversions": without tx =? PastTransaction.fromJson(json): fail - check tx.blockHash == BlockHash(array[32, byte].fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922")) + check tx.blockHash == BlockHash.fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922") check tx.blockNumber == 0x22e.u256 check tx.sender == Address.init("0xe00b677c29ff8d8fe6068530e2bc36158c54dd34").get check tx.gas == 0x4d4bb.u256 @@ -153,7 +153,7 @@ suite "JSON Conversions": test "PastTransaction serializes correctly": let tx = PastTransaction( - blockHash: BlockHash(array[32, byte].fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922")), + blockHash: BlockHash.fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922"), blockNumber: 0x22e.u256, sender: Address.init("0xe00b677c29ff8d8fe6068530e2bc36158c54dd34").get, gas: 0x4d4bb.u256,