algorand / algorand/go-algorand
Assert with reason code
Đang mở
community interest
external contribution
new-feature-request
Team Scytale
- Ngôn ngữ chính
- Go
- Star
- 1.4k
- Fork
- 537
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 18
Mô tả
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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.