Skip to content

Commit d0a86ec

Browse files
committed
fix: attribute error token_pause
1 parent 109ca21 commit d0a86ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hiero_sdk_python/tokens/token_pause_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def build_transaction_body(self):
5858
token=self.token_id.to_proto()
5959
)
6060
transaction_body = self.build_base_transaction_body()
61-
transaction_body.tokenPause.CopyFrom(token_pause_body)
61+
transaction_body.token_pause.CopyFrom(token_pause_body)
6262
return transaction_body
6363

6464
def _get_method(self, channel: _Channel) -> _Method:

tests/unit/test_token_pause_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_builds_token_pause_body_with_correct_ids(mock_account_ids, generate_tra
5353

5454
body = tx.build_transaction_body()
5555

56-
assert body.tokenPause.token == token_id.to_proto()
56+
assert body.token_pause.token == token_id.to_proto()
5757
assert body.transactionID == tx.transaction_id.to_proto()
5858
assert body.nodeAccountID == tx.node_account_id.to_proto()
5959

0 commit comments

Comments
 (0)