diff --git a/pallas-traverse/src/tx.rs b/pallas-traverse/src/tx.rs index c3998c4..129b8a9 100644 --- a/pallas-traverse/src/tx.rs +++ b/pallas-traverse/src/tx.rs @@ -64,13 +64,17 @@ impl<'b> MultiEraTx<'b> { /// Try decode a transaction via every era's encoding format, starting with /// the most recent and returning on first success, or None if none are /// successful + /// + /// NOTE: Until Conway is officially released, this method favors Babbage + /// decoding over Conway decoding. This means that we'll attempt to + /// decode using Babbage first even if Conway is newer. pub fn decode(cbor: &'b [u8]) -> Result { if let Ok(tx) = minicbor::decode(cbor) { - return Ok(MultiEraTx::Conway(Box::new(Cow::Owned(tx)))); + return Ok(MultiEraTx::Babbage(Box::new(Cow::Owned(tx)))); } if let Ok(tx) = minicbor::decode(cbor) { - return Ok(MultiEraTx::Babbage(Box::new(Cow::Owned(tx)))); + return Ok(MultiEraTx::Conway(Box::new(Cow::Owned(tx)))); } if let Ok(tx) = minicbor::decode(cbor) {