ligo/src/test/contracts/double_michelson_or.mligo
2020-04-19 15:20:02 +02:00

10 lines
322 B
Plaintext

type storage = (int,"foo",string,"bar") michelson_or
type foobar = (int,"baz", int, "fooo" ) michelson_or
type return = operation list * storage
let main (action, store : unit * storage) : return =
let foo = (M_right ("one") : storage) in
let bar = (M_right 1 : foobar) in
(([] : operation list), (foo: storage))