Skip to content

Commit

Permalink
Fix a syntax warning
Browse files Browse the repository at this point in the history
Replaces 'is not' with != as we should be checking for equality, not identity.

Co-authored-by: Goksel Coban <[email protected]>
  • Loading branch information
RcrossF and gokselcoban authored Nov 15, 2022
1 parent c50d517 commit ee70a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyman/v1/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def prepare_app_optin_transactions(self, user_address=None):
return txn_group

def prepare_asset_optin_transactions(self, asset_id, user_address=None):
assert asset_id is not 0, "Cannot opt into ALGO"
assert asset_id != 0, "Cannot opt into ALGO"
user_address = user_address or self.user_address
suggested_params = self.algod.suggested_params()
txn_group = prepare_asset_optin_transactions(
Expand Down

0 comments on commit ee70a08

Please sign in to comment.