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

TEAL 7 makes runtime fail #759

Closed
MetaB0y opened this issue Aug 10, 2022 · 4 comments
Closed

TEAL 7 makes runtime fail #759

MetaB0y opened this issue Aug 10, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@MetaB0y
Copy link

MetaB0y commented Aug 10, 2022

I am doing teal = compileTeal(pyteal, mode=Mode.Application, version=MAX_PROGRAM_VERSION) in my PyTEAL, probably as many other people do.

PyTEAL recently updated MAX_PROGRAM_VERSION to 7. It makes Alogbuilder runtime fail with errors like:

TypeError: Cannot read properties of undefined (reading 'has')
      at setInnerTxField (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/lib/itxn.ts:152:33)
      at ITxnField.execute (node_modules/.store/@algo-builder-runtime-npm-5.0.1-79534551d4/package/src/interpreter/opcode-list.ts:4191:38)

This particular error occurs because uintTxtFields doesn't have a key 7.

I understand that TEAL 7 is not yet implemented neither in Algobuilder nor Algorand mainnet, but I think it should be run the same as TEAL 6 for now instead of throwing slightly mysterious errors.

@MetaB0y MetaB0y added the bug Something isn't working label Aug 10, 2022
@robert-zaremba
Copy link
Member

we are slowly adding Teal v7 support.
Could you share your PyTeal code (or part of it)? This way we can prioritize the parts which are failing related to your code?

@robert-zaremba
Copy link
Member

In fact most of this can be solved, by just adding Tealv7 Map.

@thdailong thdailong mentioned this issue Sep 27, 2022
1 task
@robert-zaremba
Copy link
Member

It's in our develop release, will be part of the next v6.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants