Skip to content

Commit 0325c5d

Browse files
committed
fix Decode implementation for List
1 parent 9fceb6a commit 0325c5d

File tree

1 file changed

+1
-1
lines changed
  • ethereum-common/src/base_types

1 file changed

+1
-1
lines changed

ethereum-common/src/base_types/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl<T: Decode, const N: usize> Decode for List<T, N> {
196196
input: &mut I,
197197
) -> Result<Self, parity_scale_codec::Error> {
198198
let data = <Vec<T> as Decode>::decode(input)?;
199-
if data.len() >= N {
199+
if data.len() > N {
200200
return Err("Decoded Vec length is greater than N".into());
201201
}
202202

0 commit comments

Comments
 (0)