Skip to content

Commit 2bf627e

Browse files
committed
psbt: Fix check for missing asset and its proof
1 parent 6e6a922 commit 2bf627e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psbt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ struct PSBTInput
10281028
if ((m_explicit_value.has_value() || !m_value_proof.empty()) && (!m_explicit_value.has_value() || m_value_proof.empty())) {
10291029
throw std::ios_base::failure("Input explicit value and value proof must be provided together");
10301030
}
1031-
if ((!m_explicit_asset.IsNull() || !m_asset_proof.empty()) && (!m_explicit_asset.IsNull() || m_asset_proof.empty())) {
1031+
if ((!m_explicit_asset.IsNull() || !m_asset_proof.empty()) && (m_explicit_asset.IsNull() || m_asset_proof.empty())) {
10321032
throw std::ios_base::failure("Input explicit asset and asset proof must be provided together");
10331033
}
10341034
}

0 commit comments

Comments
 (0)