@@ -925,7 +925,7 @@ struct PSBTInput
925
925
{
926
926
if (!key_lookup.emplace (key).second ) {
927
927
throw std::ios_base::failure (" Duplicate Key, explicit value is already provided" );
928
- } else if (key. size () != 1 ) {
928
+ } else if (subkey_len != 1 ) {
929
929
throw std::ios_base::failure (" Input explicit value is more than one byte type" );
930
930
}
931
931
CAmount v;
@@ -937,7 +937,7 @@ struct PSBTInput
937
937
{
938
938
if (!key_lookup.emplace (key).second ) {
939
939
throw std::ios_base::failure (" Duplicate Key, explicit value proof is already provided" );
940
- } else if (key. size () != 1 ) {
940
+ } else if (subkey_len != 1 ) {
941
941
throw std::ios_base::failure (" Input explicit value proof is more than one byte type" );
942
942
}
943
943
s >> m_value_proof;
@@ -947,7 +947,7 @@ struct PSBTInput
947
947
{
948
948
if (!key_lookup.emplace (key).second ) {
949
949
throw std::ios_base::failure (" Duplicate Key, explicit asset is already provided" );
950
- } else if (key. size () != 1 ) {
950
+ } else if (subkey_len != 1 ) {
951
951
throw std::ios_base::failure (" Input explicit asset is more than one byte type" );
952
952
}
953
953
UnserializeFromVector (s, m_explicit_asset);
@@ -957,17 +957,17 @@ struct PSBTInput
957
957
{
958
958
if (!key_lookup.emplace (key).second ) {
959
959
throw std::ios_base::failure (" Duplicate Key, explicit asset proof is already provided" );
960
- } else if (key. size () != 1 ) {
960
+ } else if (subkey_len != 1 ) {
961
961
throw std::ios_base::failure (" Input explicit asset proof is more than one byte type" );
962
962
}
963
- s >> m_value_proof ;
963
+ s >> m_asset_proof ;
964
964
break ;
965
965
}
966
966
case PSBT_ELEMENTS_IN_BLINDED_ISSUANCE:
967
967
{
968
968
if (!key_lookup.emplace (key).second ) {
969
969
throw std::ios_base::failure (" Duplicate Key, issuance needs blinded flag is already provided" );
970
- } else if (key. size () != 1 ) {
970
+ } else if (subkey_len != 1 ) {
971
971
throw std::ios_base::failure (" Input issuance needs blinded flag is more than one byte type" );
972
972
}
973
973
bool b;
@@ -1028,7 +1028,7 @@ struct PSBTInput
1028
1028
if ((m_explicit_value.has_value () || !m_value_proof.empty ()) && (!m_explicit_value.has_value () || m_value_proof.empty ())) {
1029
1029
throw std::ios_base::failure (" Input explicit value and value proof must be provided together" );
1030
1030
}
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 ())) {
1032
1032
throw std::ios_base::failure (" Input explicit asset and asset proof must be provided together" );
1033
1033
}
1034
1034
}
0 commit comments