Skip to content

Commit 73ab028

Browse files
committed
fix: naming errors for token info
Signed-off-by: exploreriii <[email protected]>
1 parent 0cf6001 commit 73ab028

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/token_pause.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ def pause_token(client, token_id, pause_key):
8989

9090
print(f"Successfully paused token {token_id}")
9191

92-
def check_token_status(client, token_id):
92+
def check_pause_status(client, token_id):
9393
"""
9494
Query and print the current paused/unpaused status of a token.
9595
"""
9696
info = TokenInfoQuery().set_token_id(token_id).execute(client)
97-
print(f"Token status is now: {info.token_status.name}")
97+
print(f"Token status is now: {info.pause_status.name}")
9898

9999
def delete_token(client, token_id, admin_key):
100100
"""Delete token"""
@@ -131,7 +131,7 @@ def token_pause():
131131
pause_token(client, token_id, pause_key)
132132

133133
# Verify it is paused
134-
check_token_status(client, token_id)
134+
check_pause_status(client, token_id)
135135

136136
# Try deleting token with admin key – should fail with TOKEN_IS_PAUSED
137137
try:

0 commit comments

Comments
 (0)