ligo/test/contracts/failwith.mligo

9 lines
213 B
Plaintext
Raw Normal View History

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 ()