Skip to content

Commit f8bd8cf

Browse files
committed
Create ChunkedTransaction class
Signed-off-by: MonaaEid <monaa_eid@hotmail.com>
1 parent 3071135 commit f8bd8cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hiero_sdk_python/transaction/chunked_transaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def __init__(self) -> None:
3939
self.chunk_size: int = 1024
4040
self.max_chunks: int = 20
4141

42-
4342
@abstractmethod
4443
def _build_proto_body(self):
4544
"""
@@ -133,6 +132,7 @@ def freeze_with(self, client: Client) -> ChunkedTransaction:
133132
if self._transaction_body_bytes:
134133
return self
135134

135+
self._validate_chunking()
136136
self._resolve_transaction_id(client)
137137

138138
if self.transaction_id.valid_start is None:
@@ -249,7 +249,7 @@ def execute_all(
249249
List[TransactionReceipt]: If wait_for_receipt is True (default)
250250
List[TransactionResponse]: If wait_for_receipt is False
251251
"""
252-
self._validate_chunking() # Moved here
252+
self._validate_chunking()
253253

254254
# For single-chunk transactions, delegate to the standard execution flow.
255255
if self.get_required_chunks() == 1:

0 commit comments

Comments
 (0)