1

The contract is meant to allow transfers only from the admin. I what to initialized the admin address at origination.

parameter (or (unit %default) (pair %admin_transfer (address %destination) (mutez %amount)));
storage   (pair (address %administrator) (unit %dummy));
code
  { ... }

I'm trying originate this with the tezos-client:

tezos-client originate contract admin-transfer transfering 10 from admin-address running path/admin-transfer  --init ??? --burn-cap 10

I tried several variations on --init '(Pair "tz1..." unit) with no luck. What is the argument that I need? If you know of any resources with multiple examples on how to use –init, I would appreciate it.

1 Answer 1

1

The unit literal is capitalized Unit.

The following will work: --init '(Pair "tz1..." Unit)'.

3
  • Thank you! This is the answer. I don't have enough rep to up vote.
    – Phil
    Apr 28, 2022 at 13:13
  • Btw, VisualTez is a useful tool for generating the Michelson values. Give it a try: visualtez.com/… Apr 28, 2022 at 13:27
  • That's great, Thanks!
    – Phil
    Apr 29, 2022 at 15:22

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.