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
|
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() |
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-elseblockVoting/Backend/BV2.py
Lines 31 to 36 in 163c09d