Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/codec/src/decoding/v7/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn decode_v7(blob: &[u8]) -> Result<Batch, DecodingError> {

// check version.
let version = from_be_bytes_slice_and_advance_buf!(u8, buf);
debug_assert!((version == 7) | (version == 8), "incorrect blob version");
debug_assert!((version == 7) || (version == 8) || (version == 9), "incorrect blob version");

let blob_payload_size = from_be_bytes_slice_and_advance_buf!(u32, 3, buf) as usize;

Expand Down
2 changes: 0 additions & 2 deletions crates/codec/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ pub enum CodecError {
/// An error occurring during the decoding.
#[derive(Debug, thiserror::Error)]
pub enum DecodingError {
#[error("missing codec version in input")]
MissingCodecVersion,
#[error("unsupported codec version {0}")]
UnsupportedCodecVersion(u8),
#[error("malformed codec version: {0}")]
Expand Down
2 changes: 1 addition & 1 deletion crates/codec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Codec {
let blob = input.blob().ok_or(DecodingError::MissingBlob)?;
decode_v4(calldata, blob.as_ref())?
}
7..=8 => {
7..=9 => {
let blob = input.blob().ok_or(DecodingError::MissingBlob)?;
decode_v7(blob.as_ref())?
}
Expand Down
Loading