From 7f8b384777e90311cc4cdad313f90a595bff70e9 Mon Sep 17 00:00:00 2001 From: Andrew Westberg Date: Sun, 19 Jun 2022 08:00:10 -0500 Subject: [PATCH] Parse Babbage headers (#131) --- pallas-traverse/src/header.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pallas-traverse/src/header.rs b/pallas-traverse/src/header.rs index e54b5962..e94329eb 100644 --- a/pallas-traverse/src/header.rs +++ b/pallas-traverse/src/header.rs @@ -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))