Skip to content

Commit

Permalink
[fold] clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Oct 31, 2024
1 parent 6c87e70 commit a75cf0e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/libxrpl/protocol/STTx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ STTx::getSeqProxy() const
if (isFieldPresent(sfBatchTxn))
{
STObject const& batchTxn = const_cast<ripple::STTx&>(*this)
.getField(sfBatchTxn)
.downcast<STObject>();
.getField(sfBatchTxn)
.downcast<STObject>();

std::uint32_t const batchIndex{batchTxn.getFieldU8(sfBatchIndex)};
if (batchTxn.isFieldPresent(sfTicketSequence))
Expand Down Expand Up @@ -385,15 +385,16 @@ singleSignHelper(

if (!validSig)
return Unexpected("Invalid signature.");

return {};
}

Expected<void, std::string>
STTx::checkSingleSign(RequireFullyCanonicalSig requireCanonicalSig) const
{
auto const data = getSigningData(*this);
return singleSignHelper(*this, makeSlice(data), requireCanonicalSig, getFlags());
return singleSignHelper(
*this, makeSlice(data), requireCanonicalSig, getFlags());
}

Expected<void, std::string>
Expand All @@ -403,7 +404,8 @@ STTx::checkBatchSingleSign(
{
Serializer msg;
serializeBatch(msg, getFlags(), getFieldV256(sfTxIDs));
return singleSignHelper(batchSigner, msg.slice(), requireCanonicalSig, getFlags());
return singleSignHelper(
batchSigner, msg.slice(), requireCanonicalSig, getFlags());
}

Expected<void, std::string>
Expand Down Expand Up @@ -467,7 +469,6 @@ multiSignHelper(
return {};
}


Expected<void, std::string>
STTx::checkBatchMultiSign(
STObject const& batchSigner,
Expand Down Expand Up @@ -505,7 +506,9 @@ STTx::checkBatchMultiSign(
signers,
txnAccountID,
fullyCanonical,
[&msg](AccountID const&) -> std::vector<uint8_t> { return msg.getData(); });
[&msg](AccountID const&) -> std::vector<uint8_t> {
return msg.getData();
});
}

Expected<void, std::string>
Expand Down Expand Up @@ -548,7 +551,6 @@ STTx::checkMultiSign(
});
}


//------------------------------------------------------------------------------

static bool
Expand Down

0 comments on commit a75cf0e

Please sign in to comment.