pyteal
pyteal copied to clipboard
Trace comments
Running examples/application/debug/contract.py yields
#pragma version 6
int 1 // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 6
int 2 // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 6
callsub thing_0 // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 6
pop
byte "ok"
len
int 0 // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 8
>
assert // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 8
int 2 // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 10
int 3 // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 10
callsub thing_0 // pyteal-src "/home/ben/pyteal/examples/application/debug/contract.py": line 10
return
// thing
thing_0: // pyteal-src "/home/ben/pyteal/examples/application/debug/util.py": line 5
+
retsub
Note: This would require every Expr to pass its trace in the __teal__ method
If this is not atrocious I can start adding the trace to each Expr
oh no, feature/abi merged, you should probably remerge master branch.