From 2bf627e282edb526ef98bb9a8916e78226e68787 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 6 Sep 2022 15:57:21 -0400 Subject: [PATCH] psbt: Fix check for missing asset and its proof --- src/psbt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psbt.h b/src/psbt.h index 0936787853..ff00faf297 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -1028,7 +1028,7 @@ struct PSBTInput if ((m_explicit_value.has_value() || !m_value_proof.empty()) && (!m_explicit_value.has_value() || m_value_proof.empty())) { throw std::ios_base::failure("Input explicit value and value proof must be provided together"); } - if ((!m_explicit_asset.IsNull() || !m_asset_proof.empty()) && (!m_explicit_asset.IsNull() || m_asset_proof.empty())) { + if ((!m_explicit_asset.IsNull() || !m_asset_proof.empty()) && (m_explicit_asset.IsNull() || m_asset_proof.empty())) { throw std::ios_base::failure("Input explicit asset and asset proof must be provided together"); } }