Bronze_Badges/seun-Choice-Coin-Python/helpers.py
def contains_choice_coin(address: str, client) -> bool:
    """Checks if the address is opted into Vote Coin."""
    account = client.account_info(address)
    contains_choice = False

    for asset in account["assets"]:
        if asset["asset-id"] == ASSET_ID:
            contains_vote = True
            break

    return contains_vote
Checks if the address is opted into Vote Coin.
Checks if the address is opted into Vote Coin.
Checks if the address is opted into Vote Coin .
def contains_choice_coin(address: str, client) -> bool:
    account = client.account_info(address)
    contains_choice = False
    for asset in account["assets"]:
        if asset["asset-id"] == ASSET_ID:
            contains_vote = True
            break
    return contains_vote
def contains_choice_coin ( address : str , client ) -> bool : account = client . account_info ( address ) contains_choice = False for asset in account [ "assets" ] : if asset [ "asset-id" ] == ASSET_ID : contains_vote = True break return contains_vote
Checks if the address is opted into Vote Coin.
Checks if the address is opted into Vote Coin .
"""Checks if the address is opted into Vote Coin."""
address
str
client