Added support for EXIT op #888

Merged
zxq9 merged 4 commits from exit-op into master 2022-07-08 22:56:30 +09:00
Showing only changes of commit 7762782307 - Show all commits

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