
* Ast_typed stage is now aware of the main function name * main function type is checked against expected contract types * Tezos.self (returning contract type) is checked against main function type * In general, Ast_typed.compile signature has been changed to enable/disable contract-related checks
5 lines
212 B
Plaintext
5 lines
212 B
Plaintext
let main (ps : unit * unit) : operation list * unit =
|
|
if true
|
|
then (failwith "This contract always fails" : operation list * unit)
|
|
else (failwith "This contract still always fails" : operation list * unit)
|