pyteal
pyteal copied to clipboard
New methods to compile programs
Problem
At the moment the only method we have available to compile teal is compileTeal which takes a number of arguments including mode and version.
The version must be passed if you want it to be >2 (backwards compat reasons)
Solution
I'd like to have some other methods defined to compile apps/sigs without passing as many arguments and maybe even pass a path to write the teal out.
For example maybe:
compileApplication(approval(), clear(), 'path/to/write/teal')
where it defaults to latest version and mode.application.
Something similar should be made available for lsigs.