Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tezos-client generated command issue #136

Closed
Pot8o-s opened this issue Nov 3, 2020 · 1 comment · Fixed by #165
Closed

Tezos-client generated command issue #136

Pot8o-s opened this issue Nov 3, 2020 · 1 comment · Fixed by #165
Assignees
Labels
bug Something isn't working

Comments

@Pot8o-s
Copy link

Pot8o-s commented Nov 3, 2020

Hello,

First of all, I've been using your tool for not a very long time, and I'm very new to michelson, so this might not be an issue, but seems to me to be one.

Here is the problem:

I have a smartcontract deployed with the following entrypoint (updateOwner):

...
              (or (or (unit %unfreeze) (address %updateOwner))
...

When trying to interact with it using your tool, the tezos-client command generated is :

transfer 0 from tz1SPqTmARUfadFFBxRBTxZ76PVKjG6hzDj5 to KT1XP98t844HEaaSqZn9VMfJbA1vfd9Rwk5V --entrypoint 'updateOwner' --arg 'tz2ChZdsfpwgsKdx95SxgoCJWrFcpewA9BoQ'

When trying to run it using the client, this is the error message I get:

Invalid primitive: 1: tz2ChZdsfpwgsKdx95SxgoCJWrFcpewA9BoQ
Primitive tz2ChZdsfpwgsKdx95SxgoCJWrFcpewA9BoQ has invalid case.

Looking a bit at the previous output I got using other entrypoint, I tried to replace the commend with (encaspulating the --arg address in "):

transfer 0 from tz1SPqTmARUfadFFBxRBTxZ76PVKjG6hzDj5 to KT1XP98t844HEaaSqZn9VMfJbA1vfd9Rwk5V --entrypoint 'updateOwner' --arg '"tz2ChZdsfpwgsKdx95SxgoCJWrFcpewA9BoQ"'

And this one seems to work.

So, maybe you have forgotten to add the " in this usecase ?

Here is a link to the smartcontract I'm using, if it can help:

https://better-call.dev/carthagenet/KT1XP98t844HEaaSqZn9VMfJbA1vfd9Rwk5V/operations

anyway, thank you for your tool, it's saving me a lot of time.

Best regards

@m-kus m-kus self-assigned this Nov 3, 2020
@m-kus m-kus added the bug Something isn't working label Nov 3, 2020
@m-kus
Copy link
Member

m-kus commented Nov 3, 2020

Most likely it's missing quotes, thanks! Will fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants