diff --git a/pallas-traverse/src/tx.rs b/pallas-traverse/src/tx.rs index 3506ecb..c3998c4 100644 --- a/pallas-traverse/src/tx.rs +++ b/pallas-traverse/src/tx.rs @@ -198,17 +198,20 @@ impl<'b> MultiEraTx<'b> { /// https://github.com/input-output-hk/cardano-ledger/commit/a342b74f5db3d3a75eae3e2abe358a169701b1e7 pub fn reference_inputs(&self) -> Vec { match self { + MultiEraTx::Conway(x) => x + .transaction_body + .reference_inputs + .iter() + .flatten() + .map(MultiEraInput::from_alonzo_compatible) + .collect(), MultiEraTx::Babbage(x) => x .transaction_body .reference_inputs - .as_ref() - .map(|inputs| { - inputs - .iter() - .map(MultiEraInput::from_alonzo_compatible) - .collect() - }) - .unwrap_or_default(), + .iter() + .flatten() + .map(MultiEraInput::from_alonzo_compatible) + .collect(), _ => vec![], } }