Fix failing decode test
This commit is contained in:
parent
c5f00d1666
commit
fd5f914c3c
@ -83,7 +83,7 @@ impl<'a> SszDecoderBuilder<'a> {
|
||||
|
||||
if previous_offset > offset {
|
||||
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
||||
} else if offset >= self.bytes.len() {
|
||||
} else if offset > self.bytes.len() {
|
||||
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user