mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
psbt: Fix check for missing asset and its proof
This commit is contained in:
parent
6e6a92209c
commit
2bf627e282
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue