From cc6d7267f588e23ee8c7776e8f0feb68b8de85c8 Mon Sep 17 00:00:00 2001 From: chenr1 Date: Mon, 15 Apr 2024 15:37:00 -0500 Subject: [PATCH] Update get_balance_allowance.py There is an error/typo in the no portion of this example. The Param was not formatted properly. Specefically the token_id was not included inside the BalanceAlowanceParams. Resulting in the following error: TypeError: get_balance_allowance() got an unexpected keyword argument 'token_id' I resolved it by moving the token_id to the right place. --- examples/get_balance_allowance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/get_balance_allowance.py b/examples/get_balance_allowance.py index 419e8b9..71c5d6e 100644 --- a/examples/get_balance_allowance.py +++ b/examples/get_balance_allowance.py @@ -33,8 +33,10 @@ def main(): print(yes) no = client.get_balance_allowance( - params=BalanceAllowanceParams(asset_type=AssetType.CONDITIONAL), + params=BalanceAllowanceParams( + asset_type=AssetType.CONDITIONAL, token_id="16678291189211314787145083999015737376658799626183230671758641503291735614088", + ) ) print(no)