Skip to content

Commit bba54fa

Browse files
author
Matteo Baratella
committed
Fix
1 parent f5224af commit bba54fa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

main.py

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def read_state(algod_client, app_id, user_private_key=None, show_debug=False):
2323
utils.console_log("Invalid app_id")
2424
return False
2525

26+
local_state = None
2627
if user_private_key is not None:
2728
# read local state of application
2829
local_state = algo_helper.read_local_state(algod_client,
@@ -39,6 +40,9 @@ def read_state(algod_client, app_id, user_private_key=None, show_debug=False):
3940
utils.console_log("App id: {}".format(app_id), 'blue')
4041
utils.console_log("Global State:", 'blue')
4142
print(utils.toArray(global_state))
43+
if local_state is not None:
44+
utils.console_log("Local State:", 'blue')
45+
print(utils.toArray(local_state))
4246
utils.console_log("Approval Program:", 'blue')
4347
print(approval_program)
4448
utils.console_log("Clear State Program:", 'blue')

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ py-algorand-sdk==1.9.0
33
mypy==0.910
44
black==21.7b0
55
python-dotenv==0.19.2
6-
numpy==1.22.0
6+
numpy==1.21.6

0 commit comments

Comments
 (0)