Skip to content

Commit 267ef6e

Browse files
committed
chore: added some suggesttions
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent aacefc6 commit 267ef6e

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/hiero_sdk_python/transaction/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def is_signed_by(self, public_key):
408408

409409
return any(sig_pair.pubKeyPrefix == public_key_bytes for sig_pair in sig_map.sigPair)
410410

411-
def build_transaction_body(self) -> transaction_pb2.Transaction:
411+
def build_transaction_body(self) -> transaction_pb2.TransactionBody:
412412
"""
413413
Abstract method to build the transaction body.
414414

tests/integration/file_append_transaction_e2e_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,13 @@ def test_file_append_chuck_transaction_can_execute_with_manual_freeze(env):
314314
.set_file_id(file_id)
315315
.set_chunk_size(1024)
316316
.set_contents(content)
317-
.freeze_with(env.client)
317+
.set_transaction_id(TransactionId.generate(env.client.operator_account_id))
318+
.set_node_account_id(AccountId(0,0,3))
319+
.freeze()
318320
)
319321

320-
# tx.sign(env.client.operator_private_key)
322+
tx.sign(env.client.operator_private_key)
321323

322-
print(tx.get_required_chunks())
323324
receipt = tx.execute(env.client)
324325

325326
assert receipt.status == ResponseCode.SUCCESS

tests/unit/mock_server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ def mock_hedera_servers(response_sequences):
180180
node._close()
181181

182182
client = Client(network)
183+
184+
for node in client.network.nodes:
185+
node._address = node._address._to_insecure()
186+
183187
client.logger.set_level(LogLevel.DISABLED)
184188
# Set the operator
185189
key = PrivateKey.generate()

0 commit comments

Comments
 (0)