mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 18:04:18 +00:00
Fix failing decode test
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user