algorand / algorand/go-algorand
Assert with reason code
Open
community interest
external contribution
new-feature-request
Team Scytale
- Dominant language
- Go
- Stars
- 1.4k
- Forks
- 537
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 18
Description
I found the assertion opcode to be very useful to prematurely abort execution on failed checks, but how difficult would be to have an opcode like
```
assert i
```
where `i` is an integer representing reason code , that allows client code to identify where the program failed. I know there is a program counter information but that's very error prone for development purposes.
Thanks in advance.
Contributor guide
Assessment
This issue has not been assessed yet.