Fix VMTest message creation in 32 bits, also duplicated word in comment
This commit is contained in:
parent
ff52d75fc0
commit
fd7062fecb
|
@ -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)
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue