From a75cf0eb5f11ea368c5dd5c0c4461a937fa7a055 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Thu, 31 Oct 2024 01:28:08 +0100 Subject: [PATCH] [fold] clang-format --- src/libxrpl/protocol/STTx.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/libxrpl/protocol/STTx.cpp b/src/libxrpl/protocol/STTx.cpp index d5f0ab9a504..1b0d28e34f7 100644 --- a/src/libxrpl/protocol/STTx.cpp +++ b/src/libxrpl/protocol/STTx.cpp @@ -192,8 +192,8 @@ STTx::getSeqProxy() const if (isFieldPresent(sfBatchTxn)) { STObject const& batchTxn = const_cast(*this) - .getField(sfBatchTxn) - .downcast(); + .getField(sfBatchTxn) + .downcast(); std::uint32_t const batchIndex{batchTxn.getFieldU8(sfBatchIndex)}; if (batchTxn.isFieldPresent(sfTicketSequence)) @@ -385,7 +385,7 @@ singleSignHelper( if (!validSig) return Unexpected("Invalid signature."); - + return {}; } @@ -393,7 +393,8 @@ Expected 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 @@ -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 @@ -467,7 +469,6 @@ multiSignHelper( return {}; } - Expected STTx::checkBatchMultiSign( STObject const& batchSigner, @@ -505,7 +506,9 @@ STTx::checkBatchMultiSign( signers, txnAccountID, fullyCanonical, - [&msg](AccountID const&) -> std::vector { return msg.getData(); }); + [&msg](AccountID const&) -> std::vector { + return msg.getData(); + }); } Expected @@ -548,7 +551,6 @@ STTx::checkMultiSign( }); } - //------------------------------------------------------------------------------ static bool