ligo/test/contracts/tez_add_sub.tz
2017-07-24 20:29:12 +02:00

7 lines
173 B
Plaintext

parameter (pair tez tez);
storage unit;
return (pair tez tez);
code {CADR; DUP; DUP; CAR; DIP{CDR}; ADD;
DIP{DUP; CAR; DIP{CDR}; SUB};
PAIR; UNIT; SWAP; PAIR};