Fix test_fixture_ssz_generic_types
This commit is contained in:
parent
22e5f8165e
commit
ca49494356
|
@ -80,7 +80,7 @@ proc checkBasic(T: typedesc,
|
|||
dir: string,
|
||||
expectedHash: SSZHashTreeRoot) =
|
||||
var fileContents = readFile(dir/"serialized.ssz")
|
||||
var stream = memoryStream(fileContents)
|
||||
var stream = memoryInput(fileContents)
|
||||
var reader = init(SszReader, stream)
|
||||
|
||||
# We are using heap allocation to avoid stack overflow
|
||||
|
@ -88,7 +88,7 @@ proc checkBasic(T: typedesc,
|
|||
var deserialized = new T
|
||||
reader.readValue(deserialized[])
|
||||
|
||||
if not stream[].eof:
|
||||
if stream.readable:
|
||||
raise newException(UnconsumedInput, "Remaining bytes in the input")
|
||||
|
||||
let
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2f0896a29ed9a7e42cf377020ea2b65affbfd6df
|
||||
Subproject commit aff6848c46facc788a3961a0835ddf8a0b733498
|
Loading…
Reference in New Issue