Fix warnings

This commit is contained in:
Mark Spanbroek 2024-03-03 06:29:58 +01:00
parent 6f2201e3cd
commit 43cef2f7ca

View File

@ -150,7 +150,7 @@ suite "JSON Conversions":
} }
let tx = PastTransaction.fromJson(json) let tx = PastTransaction.fromJson(json)
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
@ -169,7 +169,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,