ChoiceCoin/Voting

Common lines in both the if and else block

bhattbhuwan13 opened this issue · 0 comments

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()