ligo/src/test/contracts/balance_constant.religo

18 lines
453 B
Plaintext
Raw Normal View History

2019-12-10 13:47:31 +00:00
/**
This test makes sure that the balance is accessible in ReasonLIGO.
It's there to detect a regression of: https://gitlab.com/ligolang/ligo/issues/61
Which results in this error when you attempt to compile this contract:
generated. unrecognized constant: {"constant":"BALANCE","location":"generated"}
*/
type storage = tez;
let main2 = (p: unit, storage) => ([]: list(operation), balance);
let main = (x: (unit, storage)) => main2(x[0],x[1]);