Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common lines in both the if and else block #941

Open
bhattbhuwan13 opened this issue Dec 5, 2021 · 0 comments
Open

Common lines in both the if and else block #941

bhattbhuwan13 opened this issue Dec 5, 2021 · 0 comments

Comments

@bhattbhuwan13
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant