Skip to content

Commit

Permalink
Parse Babbage headers (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewWestberg authored Jun 19, 2022
1 parent 90ea43b commit 7f8b384
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pallas-traverse/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ impl<'b> MultiEraHeader<'b> {
Ok(MultiEraHeader::Byron(header))
}
},
5 => {
let header = minicbor::decode(cbor).map_err(Error::invalid_cbor)?;
Ok(MultiEraHeader::Babbage(header))
}
_ => {
let header = minicbor::decode(cbor).map_err(Error::invalid_cbor)?;
Ok(MultiEraHeader::AlonzoCompatible(header))
Expand Down

0 comments on commit 7f8b384

Please sign in to comment.