How can I send a nat
value to a contract that represents a data type which is not a whole number?
For example, the xtzToToken
entrypoint of the tzBTC contract allows a user to call the xtzToToken
entrypoint and send an argument of nat minTokensBought
. If I want to send a value that is between 1 and 0 for this argument, how would I do so>
Here is what I've tried (unsuccessfully) via the tezos=client:
tezos-client --dry-run transfer 10000 from alice to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 \
--entrypoint xtzToToken \
--arg '(Pair "tz1eYpX4e1nu7e3cvtF7UvKFqUvWDahte1ot" (Pair 1/2 "2021-09-01T09:57:00Z"))' \
--burn-cap 999
and
tezos-client --dry-run transfer 10000 from alice to KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5 \
--entrypoint xtzToToken \
--arg '(Pair "tz1eYpX4e1nu7e3cvtF7UvKFqUvWDahte1ot" (Pair 0.5 "2021-09-01T09:57:00Z"))' \
--burn-cap 999