pyteal icon indicating copy to clipboard operation
pyteal copied to clipboard

Loop load from scratch slots

Open hernandp opened this issue 4 years ago • 2 comments

Cross-referenced here.

https://forum.algorand.org/t/pyteal-loop-load-from-scratch-slots/4790

Thanks in advance. Regards,

hernandp avatar Oct 22 '21 21:10 hernandp

More generally, the issue seems to be that PyTEAL does not support stores and loads TEAL opcode.

Also affecting https://forum.algorand.org/t/pyteal-increment-slot-value-in-a-seq-expression/4864?u=fabrice

fabrice102 avatar Oct 25 '21 18:10 fabrice102

@fabrice102 It is possible to output raw TEAL code to use non-pyTEAL supported opcodes such as those, EDCSA, etc? That would be a useful feature, if its not currently available.

hernandp avatar Oct 25 '21 18:10 hernandp

@hernandp is this still an issue? We have stores and loads via dynamic scratch vars now, so perhaps that resolves your use case?

algoanne avatar Sep 16 '22 15:09 algoanne

@algoanne Yes, this can be nicely done with dynamic scratch vars now.

hernandp avatar Sep 18 '22 19:09 hernandp