File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ 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 ) , "incorrect blob version" ) ;
34+ debug_assert ! ( ( version == 7 ) || ( version == 8 ) || ( version == 9 ) , "incorrect blob version" ) ;
3535
3636 let blob_payload_size = from_be_bytes_slice_and_advance_buf ! ( u32 , 3 , buf) as usize ;
3737
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ pub enum CodecError {
1212/// An error occurring during the decoding.
1313#[ derive( Debug , thiserror:: Error ) ]
1414pub enum DecodingError {
15- #[ error( "missing codec version in input" ) ]
16- MissingCodecVersion ,
1715 #[ error( "unsupported codec version {0}" ) ]
1816 UnsupportedCodecVersion ( u8 ) ,
1917 #[ error( "malformed codec version: {0}" ) ]
Original file line number Diff line number Diff 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 ..=8 => {
62+ 7 ..=9 => {
6363 let blob = input. blob ( ) . ok_or ( DecodingError :: MissingBlob ) ?;
6464 decode_v7 ( blob. as_ref ( ) ) ?
6565 }
You can’t perform that action at this time.
0 commit comments