Fix VMTest message creation in 32 bits, also duplicated word in comment

This commit is contained in:
coffeepots 2018-08-09 22:06:36 +01:00 committed by zah
parent ff52d75fc0
commit fd7062fecb
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ proc read*(c: var CodeStream, size: int): seq[byte] =
c.pc = c.bytes.len
proc readVmWord*(c: var CodeStream, n: int): UInt256 =
## Reads `n` bytes bytes from the code stream and pads
## Reads `n` bytes from the code stream and pads
## the remaining bytes with zeros.
let result_bytes = cast[ptr array[32, byte]](addr result)

View File

@ -58,7 +58,7 @@ proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus) =
let message = newMessage(
to = toAddress,
sender = fexec{"caller"}.getStr.parseAddress,
value = cast[uint](fexec{"value"}.getHexadecimalInt).u256, # Cast workaround for negative value
value = cast[uint64](fexec{"value"}.getHexadecimalInt).u256, # Cast workaround for negative value
data = fexec{"data"}.getStr.hexToSeqByte,
code = code,
gas = fexec{"gas"}.getHexadecimalInt,