Skip to content

Commit

Permalink
fix: sidecar rlp decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Oct 23, 2024
1 parent a152496 commit d0644b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/eips/src/eip4844/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ impl BlobTransactionSidecar {
/// Decodes the [BlobTransactionSidecar] from RLP bytes.
pub fn rlp_decode(buf: &mut &[u8]) -> alloy_rlp::Result<Self> {
let header = Header::decode(buf)?;
if header.list {
return Err(alloy_rlp::Error::UnexpectedList);
if !header.list {
return Err(alloy_rlp::Error::UnexpectedString);
}
if buf.len() < header.payload_length {
return Err(alloy_rlp::Error::InputTooShort);
Expand Down

0 comments on commit d0644b7

Please sign in to comment.