ligo/src/test/contracts/balance_constant.mligo
2020-03-02 18:01:56 +01:00

19 lines
478 B
Plaintext

(*
This test makes sure that the balance is accessible in CameLIGO.
It is 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 parameter = unit
type storage = tez
type return = operation list * storage
let main (p, s : parameter * storage) : return =
([] : operation list), Tezos.balance