Skip to content

Common lines in both the if and else block #941

@bhattbhuwan13

Description

@bhattbhuwan13

There are few lines that are common to both the if and else block. The code would be more comprehensive if they are placed outside the if-else block

Voting/Backend/BV2.py

Lines 31 to 36 in 163c09d

amount = 100
vote_address = ""
transaction = AssetTransferTxn(sender=voter_address, sp=params, receiver=vote_address, amt=amount, index=asset_id)
signature = transaction.sign(voter_phrase)
algod_client.send_transaction(signature)
final = transaction.get_txid()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions