Created
January 10, 2020 09:16
-
-
Save yoshihiro503/9372153b94b8c133dc81314182cc85c4 to your computer and use it in GitHub Desktop.
An example scaml code to fail `tezos-client typecheck script`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open SCaml | |
type parameter = nat * unit contract * unit | |
type storage = nat | |
let main (param: parameter) (storage: storage) = | |
let (counter, contr, sigs) = param in | |
(* let counter = counter in *) (* If this line is available then the typecheck will be passed. *) | |
if counter <> Nat 1 then failwith "0" else | |
let op = Operation.transfer_tokens () (Tz 1.) contr in | |
([op], counter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The iml by
scaml --dump-iml typeerror.ml
.