algorand / algorand/pyteal

Pass message or error code with assertions

Aperta
#437 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
new-feature-request Team Scytale
Lingua principale
Python
Stelle
288
Fork
138
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Problem

Currently we have a complicated process to find the reason for an assertion failure. It would be great if the assertions can return a error message or if we have size limitation, a specific error byte and return it on assert failure.

## Solution

Send a direct message to caller
```py
Assert( , Bytes("failure reason"))
```
OR
Send a number or byte that can be mapped to a error message
```py
Assert(, Int(123))
```

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.