ligo/src/test/contracts/counter.religo

8 lines
162 B
Plaintext
Raw Normal View History

2019-12-10 17:47:31 +04:00
type storage = int;
let main2 = (p: int, storage): string => ([]: list(operation), p + storage);
let main = (x: (int, storage)) : string => main2(x[0],x[1]);