From ac1196d9159fdba397e20561c0ad31010ee7aa7f Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Mon, 31 Jan 2022 21:57:34 +0100 Subject: [PATCH] Bump nim-ssz-serialization and clean-up fromSszBytes raises (#948) --- fluffy/network/wire/messages.nim | 4 +--- vendor/nim-ssz-serialization | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fluffy/network/wire/messages.nim b/fluffy/network/wire/messages.nim index 078af7d58..e943014a8 100644 --- a/fluffy/network/wire/messages.nim +++ b/fluffy/network/wire/messages.nim @@ -118,9 +118,7 @@ template toSszType*(x: UInt256): array[32, byte] = toBytesLE(x) func fromSszBytes*(T: type UInt256, data: openArray[byte]): - # TODO: These two SSZ Errors (order matters ugh!) is because of raisesssz - # pragma on raiseIncorrectSize(). Need to fix that there. - T {.raises: [Defect, MalformedSszError, SszSizeMismatchError].} = + T {.raises: [Defect, MalformedSszError].} = if data.len != sizeof(result): raiseIncorrectSize T diff --git a/vendor/nim-ssz-serialization b/vendor/nim-ssz-serialization index 877528f52..cd500484e 160000 --- a/vendor/nim-ssz-serialization +++ b/vendor/nim-ssz-serialization @@ -1 +1 @@ -Subproject commit 877528f526eaf18e9f74e52202f1028786c0003d +Subproject commit cd500484e054ead951f2d07aeb81c1c8c695db26