Skip to content

Commit 776fbb7

Browse files
committed
chore: format
Signed-off-by: gsstoykov <georgi.stoykov@limechain.tech>
1 parent e1bbd81 commit 776fbb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdk/main/src/Transaction.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ WrappedTransaction Transaction<SdkRequestType>::fromBytes(const std::vector<std:
312312
// Only FileAppend and TopicMessageSubmit (chunked transactions) legitimately have multiple transactionIds.
313313
// This prevents an attacker from smuggling hidden transactions with different transactionIds
314314
// that would get signed but not displayed to the user.
315-
const auto transactionType = (expectedDataCase != proto::TransactionBody::DATA_NOT_SET) ? expectedDataCase
316-
: txBody.data_case();
315+
const auto transactionType =
316+
(expectedDataCase != proto::TransactionBody::DATA_NOT_SET) ? expectedDataCase : txBody.data_case();
317317
const bool isChunkedTransactionType = (transactionType == proto::TransactionBody::kFileAppend ||
318318
transactionType == proto::TransactionBody::kConsensusSubmitMessage);
319319

0 commit comments

Comments
 (0)