From 061a7796d6a1da08b438dbcdaf5ddf0825d9627b Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Tue, 22 Oct 2024 10:27:56 -0300 Subject: [PATCH] feat(traverse): prioritize Conway for tx decoding heuristics (#527) --- pallas-traverse/src/tx.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallas-traverse/src/tx.rs b/pallas-traverse/src/tx.rs index 5161fd83..21b1db40 100644 --- a/pallas-traverse/src/tx.rs +++ b/pallas-traverse/src/tx.rs @@ -71,11 +71,11 @@ impl<'b> MultiEraTx<'b> { /// 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::Babbage(Box::new(Cow::Owned(tx)))); + return Ok(MultiEraTx::Conway(Box::new(Cow::Owned(tx)))); } 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) {