algorand / algorand/go-algorand

Assert with reason code

Aperta
#3,013 9 commenti 7 reazioni 0 assegnatari Vedi su GitHub
community interest external contribution new-feature-request Team Scytale
Lingua principale
Go
Stelle
1.4k
Fork
537
Merge medio
1g 6h
PR unite (30g)
17

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.