Skip to content

Commit

Permalink
freeze account ids
Browse files Browse the repository at this point in the history
  • Loading branch information
exploreriii committed Jan 12, 2025
1 parent 5e63eb5 commit 1dbc1fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hedera_sdk_python/tokens/token_freeze_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _execute_transaction(self, client, transaction_proto):
Raises:
Exception: If the transaction submission fails or receives an error response.
"""
response = client.token_stub.freezeToken(transaction_proto)
response = client.token_stub.tokenFreezeAccount(transaction_proto)

if response.nodeTransactionPrecheckCode != ResponseCode.OK:
error_code = response.nodeTransactionPrecheckCode
Expand Down
6 changes: 3 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ def main():
admin_key = PrivateKey.generate()
freeze_key = PrivateKey.generate()


network_type = os.getenv('NETWORK')
network = Network(network=network_type)
client = Client(network)
Expand All @@ -269,11 +268,12 @@ def main():
query_balance(client, recipient_id)

token_id = create_token(client, operator_id, admin_key, freeze_key)
account_id, freeze_key = create_new_account(client, initial_balance=100000000)
freeze_account_id, _ = create_new_account(client, initial_balance=100000000)

associate_token(client, recipient_id, recipient_private_key, token_id)
transfer_token(client, recipient_id, token_id)
freeze_token(client, token_id, freeze_account_id, freeze_key)
delete_token(client, token_id, admin_key)
freeze_token(client, token_id, account_id, freeze_key)

topic_id = create_topic(client)
submit_message(client, topic_id)
Expand Down

0 comments on commit 1dbc1fb

Please sign in to comment.