Skip to content

Commit

Permalink
fix bp5424
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jun 11, 2023
1 parent c799777 commit a4b8df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evo/providertx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ maybe_error CProRegTx::IsTriviallyValid(bool is_bls_legacy_scheme) const
return {ValidationInvalidReason::TX_BAD_SPECIAL, "bad-protx-key-null"};
}
if (pubKeyOperator.IsLegacy() != (nVersion == LEGACY_BLS_VERSION)) {
return state.Invalid(TxValidationResult::TX_BAD_SPECIAL, "bad-protx-operator-pubkey");
return {ValidationInvalidReason::TX_BAD_SPECIAL, "bad-protx-operator-pubkey"};
}
if (!scriptPayout.IsPayToPublicKeyHash() && !scriptPayout.IsPayToScriptHash()) {
return {ValidationInvalidReason::TX_BAD_SPECIAL, "bad-protx-payee"};
Expand Down Expand Up @@ -121,7 +121,7 @@ maybe_error CProUpRegTx::IsTriviallyValid(bool is_bls_legacy_scheme) const
return {ValidationInvalidReason::TX_BAD_SPECIAL, "bad-protx-key-null"};
}
if (pubKeyOperator.IsLegacy() != (nVersion == LEGACY_BLS_VERSION)) {
return state.Invalid(TxValidationResult::TX_BAD_SPECIAL, "bad-protx-operator-pubkey");
return {ValidationInvalidReason::TX_BAD_SPECIAL, "bad-protx-operator-pubkey"};
}
if (!scriptPayout.IsPayToPublicKeyHash() && !scriptPayout.IsPayToScriptHash()) {
return {ValidationInvalidReason::TX_BAD_SPECIAL, "bad-protx-payee"};
Expand Down

0 comments on commit a4b8df7

Please sign in to comment.