9

Documentation states the following:

tez : an unbounded positive float of Tezzies, written either with a tz suffix (1.00tz, etc.) or as a string with type coercion ("1.00" : tez).

Yet the following example in Liquidity produces an error:

if amount < ("5.00": tez) then
   Current.failwith "Not enough money, at least 5tz to vote"

Liquidity compile error

While type coercion for nat works as expected: enter image description here

Github issue can be found here

2

1 Answer 1

8

So apparently, this feature is no longer available in Liquidity, and the docs are incorrect in this case. You can read a reply from Liquidity Lead Dev here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.