Skip to content

Commit 5c20270

Browse files
authored
feat(derivation-pipeline): Accept CodecV10 (GalileoV2) (#444)
* feat(derivation-pipeline): Accept CodecV10 (GalileoV2) * fmt
1 parent 987000d commit 5c20270

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

crates/codec/src/decoding/v7/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ pub fn decode_v7(blob: &[u8]) -> Result<Batch, DecodingError> {
3131

3232
// check version.
3333
let version = from_be_bytes_slice_and_advance_buf!(u8, buf);
34-
debug_assert!((version == 7) || (version == 8) || (version == 9), "incorrect blob version");
34+
debug_assert!(
35+
(version == 7) || (version == 8) || (version == 9) || (version == 10),
36+
"incorrect blob version"
37+
);
3538

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

crates/codec/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl Codec {
5959
let blob = input.blob().ok_or(DecodingError::MissingBlob)?;
6060
decode_v4(calldata, blob.as_ref())?
6161
}
62-
7..=9 => {
62+
7..=10 => {
6363
let blob = input.blob().ok_or(DecodingError::MissingBlob)?;
6464
decode_v7(blob.as_ref())?
6565
}

0 commit comments

Comments
 (0)