Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Dec 4, 2023
1 parent 109da95 commit 9f0b459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dash/src/blockdata/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9f0b459

Please sign in to comment.