mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 13:24:21 +00:00
Update doAssert to display the correct contents of stint values
This commit is contained in:
parent
66adba9037
commit
5cd81ef3ac
@ -105,7 +105,7 @@ proc verifyStateDB*(wantedState: JsonNode, stateDB: AccountStateDB) =
|
||||
# echo "FOUND ", found
|
||||
# echo "ACTUAL VALUE ", actualValue.toHex
|
||||
doAssert found
|
||||
doAssert actualValue == wantedValue
|
||||
doAssert actualValue == wantedValue, &"{actualValue.toHex} != {wantedValue.toHex}"
|
||||
|
||||
let
|
||||
wantedCode = hexToSeqByte(accountData{"code"}.getStr).toRange
|
||||
@ -116,9 +116,9 @@ proc verifyStateDB*(wantedState: JsonNode, stateDB: AccountStateDB) =
|
||||
actualBalance = stateDB.getBalance(account)
|
||||
actualNonce = stateDB.getNonce(account)
|
||||
|
||||
doAssert wantedCode == actualCode
|
||||
doAssert wantedBalance == actualBalance
|
||||
doAssert wantedNonce == actualNonce
|
||||
doAssert wantedCode == actualCode, &"{wantedCode} != {actualCode}"
|
||||
doAssert wantedBalance == actualBalance, &"{wantedBalance.toHex} != {actualBalance.toHex}"
|
||||
doAssert wantedNonce == actualNonce, &"{wantedNonce.toHex} != {actualNonce.toHex}"
|
||||
|
||||
proc getHexadecimalInt*(j: JsonNode): int64 =
|
||||
# parseutils.parseHex works with int which will overflow in 32 bit
|
||||
|
Loading…
x
Reference in New Issue
Block a user