Add require builtin

This commit is contained in:
Ulf Norell
2019-06-14 10:27:07 +02:00
parent 5628cf90b8
commit 17a1fd8095
14 changed files with 19 additions and 30 deletions
-3
View File
@@ -12,9 +12,6 @@ contract FundMe =
deadline : int,
goal : int }
private function require(b : bool, err : string) =
if(!b) abort(err)
private stateful function spend(args : spend_args) =
Chain.spend(args.recipient, args.amount)