This commit is contained in:
radrow 2022-06-28 21:06:48 +02:00
parent ae0d4309cc
commit 7762782307

View File

@ -862,6 +862,16 @@ function require(b : bool, err : string) =
if(!b) abort(err) if(!b) abort(err)
``` ```
Aside from that, there is an almost equivalent function `exit`
```sophia
exit(reason : string) : 'a
```
Just like `abort`, it breaks the execution with the given reason. The difference
however is in the gas consumption — while `abort` returns unused gas, a call to
`exit` burns it all.
## Delegation signature ## Delegation signature
Some chain operations (`Oracle.<operation>` and `AENS.<operation>`) have an Some chain operations (`Oracle.<operation>` and `AENS.<operation>`) have an