ligo/src/test/contracts/failwith.mligo
2019-09-15 13:12:19 +02:00

9 lines
213 B
Plaintext

type storage = unit
(* let%entry main (p:unit) storage = *)
(* (failwith "This contract always fails" : unit) *)
let%entry main (p:unit) storage =
if true then failwith "This contract always fails" else ()