Fix test_fixture_ssz_generic_types

This commit is contained in:
Zahary Karadjov 2020-04-14 20:38:47 +03:00 committed by zah
parent 22e5f8165e
commit ca49494356
2 changed files with 3 additions and 3 deletions

View File

@ -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