Skip to content

Commit e960645

Browse files
committed
chore: run formatting commands
Signed-off-by: Skyler Ross <[email protected]>
1 parent abdae89 commit e960645

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

sdk/c/include/hedera.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,6 @@ int32_t hedera_error_pre_check_status(void);
252252

253253
int32_t hedera_error_receipt_status_status(void);
254254

255-
size_t hedera_crypto_sha3_keccak256_digest(const uint8_t *bytes,
256-
size_t bytes_size,
257-
uint8_t **result_out);
258-
259255
/**
260256
* Parse a Hedera `AccountBalance` from the passed bytes.
261257
*/
@@ -456,6 +452,10 @@ enum HederaError hedera_contract_log_info_from_bytes(const uint8_t *bytes,
456452

457453
enum HederaError hedera_contract_log_info_to_bytes(const char *s, uint8_t **buf, size_t *buf_size);
458454

455+
size_t hedera_crypto_sha3_keccak256_digest(const uint8_t *bytes,
456+
size_t bytes_size,
457+
uint8_t **result_out);
458+
459459
/**
460460
* Parse a Hedera `FileId` from the passed bytes.
461461
*

sdk/rust/src/execute.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ where
186186
let node_index = node_indexes[index];
187187
let (node_account_id, channel) = client.network().channel(node_index);
188188

189-
let (request, context) =
190-
executable.make_request(&transaction_id, node_account_id)?;
189+
let (request, context) = executable.make_request(&transaction_id, node_account_id)?;
191190

192191
let response = match executable.execute(channel, request).await {
193192
Ok(response) => response.into_inner(),

sdk/rust/src/transaction/any.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ pub(crate) struct AnyTransactionBody<D> {
577577
transaction_id: Option<TransactionId>,
578578

579579
#[cfg_attr(feature = "ffi", serde(default))]
580+
#[cfg_attr(feature = "ffi", serde(skip_serializing_if = "std::ops::Not::not"))]
580581
is_frozen: bool,
581582

582583
#[cfg_attr(feature = "ffi", serde(default))]

sdk/swift/Sources/Hedera/Transaction.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* ‍
1919
*/
2020

21-
import Foundation
2221
import CHedera
22+
import Foundation
2323

2424
/// A transaction that can be executed on the Hedera network.
2525
public class Transaction: Request, ValidateChecksums {
@@ -140,11 +140,12 @@ public class Transaction: Request, ValidateChecksums {
140140
let requestBytes = try JSONEncoder().encode(self)
141141

142142
let request = String(data: requestBytes, encoding: .utf8)!
143-
143+
144144
var buf: UnsafeMutablePointer<UInt8>?
145145
var size = 0
146146

147-
try HError.throwing(error: hedera_transaction_to_bytes(request, makeHederaSignersFromArray(signers: signers), &buf, &size))
147+
try HError.throwing(
148+
error: hedera_transaction_to_bytes(request, makeHederaSignersFromArray(signers: signers), &buf, &size))
148149

149150
return Data(bytesNoCopy: buf!, count: size, deallocator: .unsafeCHederaBytesFree)
150151
}

0 commit comments

Comments
 (0)