pyteal icon indicating copy to clipboard operation
pyteal copied to clipboard

New methods to compile programs

Open barnjamin opened this issue 3 years ago • 0 comments

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.

barnjamin avatar Feb 07 '22 12:02 barnjamin