2020-02-27 17:51:29 +01:00
|
|
|
(*
|
2019-11-06 11:08:18 -08:00
|
|
|
This test makes sure that the balance is accessible in CameLIGO.
|
|
|
|
|
2020-02-27 17:51:29 +01:00
|
|
|
It is there to detect a regression of:
|
|
|
|
https://gitlab.com/ligolang/ligo/issues/61
|
2019-11-06 11:08:18 -08:00
|
|
|
|
2020-02-27 17:51:29 +01:00
|
|
|
which results in this error when you attempt to compile this contract:
|
2019-11-06 11:08:18 -08:00
|
|
|
|
2020-02-27 17:51:29 +01:00
|
|
|
generated. unrecognized constant: {"constant":"BALANCE","location":"generated"}
|
2019-11-06 11:08:18 -08:00
|
|
|
|
|
|
|
*)
|
|
|
|
|
2020-03-02 18:01:56 +01:00
|
|
|
type parameter = unit
|
2019-11-06 11:08:18 -08:00
|
|
|
type storage = tez
|
2020-03-02 18:01:56 +01:00
|
|
|
type return = operation list * storage
|
2019-11-06 11:08:18 -08:00
|
|
|
|
2020-03-02 18:01:56 +01:00
|
|
|
let main (p, s : parameter * storage) : return =
|
|
|
|
([] : operation list), Tezos.balance
|