Skip to content

Commit

Permalink
Update get_balance_allowance.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chenr1 authored Apr 15, 2024
1 parent e724b46 commit cc6d726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/get_balance_allowance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cc6d726

Please sign in to comment.