From 0325c5dd6d0a1c3e5f1acda8f9dd330a0b75e28f Mon Sep 17 00:00:00 2001 From: Georgy Shepelev Date: Thu, 22 Aug 2024 10:13:44 +0300 Subject: [PATCH] fix Decode implementation for List --- ethereum-common/src/base_types/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum-common/src/base_types/list.rs b/ethereum-common/src/base_types/list.rs index a19de0ca..1d2c2ef9 100644 --- a/ethereum-common/src/base_types/list.rs +++ b/ethereum-common/src/base_types/list.rs @@ -196,7 +196,7 @@ impl Decode for List { input: &mut I, ) -> Result { let data = as Decode>::decode(input)?; - if data.len() >= N { + if data.len() > N { return Err("Decoded Vec length is greater than N".into()); }