Fix warnings

This commit is contained in:
Mark Spanbroek 2024-03-03 06:29:58 +01:00 committed by markspanbroek
parent 877ff82ef6
commit 4a57089ed2
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ suite "JSON Conversions":
without tx =? PastTransaction.fromJson(json): without tx =? PastTransaction.fromJson(json):
fail fail
check tx.blockHash == BlockHash(array[32, byte].fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922")) check tx.blockHash == BlockHash.fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922")
check tx.blockNumber == 0x22e.u256 check tx.blockNumber == 0x22e.u256
check tx.sender == Address.init("0xe00b677c29ff8d8fe6068530e2bc36158c54dd34").get check tx.sender == Address.init("0xe00b677c29ff8d8fe6068530e2bc36158c54dd34").get
check tx.gas == 0x4d4bb.u256 check tx.gas == 0x4d4bb.u256
@ -153,7 +153,7 @@ suite "JSON Conversions":
test "PastTransaction serializes correctly": test "PastTransaction serializes correctly":
let tx = PastTransaction( let tx = PastTransaction(
blockHash: BlockHash(array[32, byte].fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922")), blockHash: BlockHash.fromHex("0x595bffbe897e025ea2df3213c4cc52c3f3d69bc04b49011d558f1b0e70038922"),
blockNumber: 0x22e.u256, blockNumber: 0x22e.u256,
sender: Address.init("0xe00b677c29ff8d8fe6068530e2bc36158c54dd34").get, sender: Address.init("0xe00b677c29ff8d8fe6068530e2bc36158c54dd34").get,
gas: 0x4d4bb.u256, gas: 0x4d4bb.u256,