diff --git a/dash/src/blockdata/transaction/mod.rs b/dash/src/blockdata/transaction/mod.rs index 459096280e..8587544ce3 100644 --- a/dash/src/blockdata/transaction/mod.rs +++ b/dash/src/blockdata/transaction/mod.rs @@ -646,7 +646,7 @@ impl Decodable for Transaction { // segwit let mut segwit = input.is_empty(); // Forcing segwit to false for AssetUnlock, as currently Core doesn't support BIP141 SegWit. - if special_transaction_type_u16 == TransactionType::AssetUnlock { + if let Ok(TransactionType::AssetUnlock) = TransactionType::try_from(special_transaction_type_u16) { segwit = false; } if segwit {