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

Add ability to specify TEAL version #45

Merged
merged 2 commits into from
Mar 17, 2021
Merged

Add ability to specify TEAL version #45

merged 2 commits into from
Mar 17, 2021

Conversation

jasonpaulos
Copy link
Contributor

Add an optional version parameter to the compileTeal method. By default compileTeal will compile expressions to TEAL v2. Once TEAL 3 support is added, users will need to pass in 3 to be able to take advantage of its new features.

It's important for smart contract developers to know exactly which version of TEAL they are writing their contracts for, since some versions introduce new fields that must be checked to maintain a secure app. An example of this is version 2 of TEAL introducing the ability for transactions to rekey accounts.

Closes #31.

@jasonpaulos jasonpaulos merged commit 1a62a04 into master Mar 17, 2021
@jasonpaulos jasonpaulos deleted the version-programs branch March 17, 2021 21:39
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

Successfully merging this pull request may close these issues.

Add a way to version to PyTeal programs
1 participant