Making transactions in ReLigo is undocumented, compiler error is unhelpful
There's no documentation on how to make transfers in mligo or religo, only a brief tutorial for ligo. There's only one mligo example in the contracts, new-syntax.mligo
.
With some trial and error I got to
let ct : contract(string) = Operation.get_contract(sender);
let op : operation = Operation.transaction("a", ct, 0mutez);
However, compiling this gives me an error where the compiler gives the entirety of the main
entrypoint as
the location of the error and say "not a tez". What is not a tez? 0mutez
? Why not?
Changing "0mutez" to "1mutez" "1tz" "1tez" etc does not help.