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

pobtoken claim with multiple receivers #145

Closed
buhtignew opened this issue Jul 9, 2024 · 1 comment
Closed

pobtoken claim with multiple receivers #145

buhtignew opened this issue Jul 9, 2024 · 1 comment
Labels
enhancement New feature or request error message An error message received

Comments

@buhtignew
Copy link
Collaborator

buhtignew commented Jul 9, 2024

I've tested pobtoken claim ATTokenNewSpec2_local f7d94d3391230e997c0120cab4ea6a8e02fe06408ddd0adc1fc1c4a9d70ed08c -r [mwvsHNwNQ8eiRFGHNqnpD7EdoFk5zzAdYH, mnYTcGF8vVuSAYeoxxNaFWX94QUFM92YZf, mk9WFSTqgtTJbwb5g6pGpByTRbYKiSaX3w, n3qWzoBX24abCSq8hMMzmCb8dh5ePnhdmL] -a [1, 2, 3, 4] and pobtoken claim ATTokenNewSpec2_local f7d94d3391230e997c0120cab4ea6a8e02fe06408ddd0adc1fc1c4a9d70ed08c -r "[mwvsHNwNQ8eiRFGHNqnpD7EdoFk5zzAdYH, mnYTcGF8vVuSAYeoxxNaFWX94QUFM92YZf, mk9WFSTqgtTJbwb5g6pGpByTRbYKiSaX3w, n3qWzoBX24abCSq8hMMzmCb8dh5ePnhdmL]" -a [1, 2, 3, 4] and got:

 File "~/.local/bin/pacli", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "~/.local/lib/python3.12/site-packages/pacli/__main__.py", line 479, in main
    fire.Fire({
  File "~/.local/lib/python3.12/site-packages/fire/core.py", line 143, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/fire/core.py", line 477, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/fire/core.py", line 693, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/pacli/at_classes.py", line 129, in claim
    payto = ec.process_address(payto)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/pacli/extended_commands.py", line 105, in process_address
    raise ei.PacliInputDataError("No valid address string or non-existing label in the {}.".format(msg_keyring))
pacli.extended_interface.PacliInputDataError: No valid address string or non-existing label in the extended configuration file.

Then I've also tried pobtoken claim ATTokenNewSpec2_local f7d94d3391230e997c0120cab4ea6a8e02fe06408ddd0adc1fc1c4a9d70ed08c -r "[mwvsHNwNQ8eiRFGHNqnpD7EdoFk5zzAdYH, mnYTcGF8vVuSAYeoxxNaFWX94QUFM92YZf, mk9WFSTqgtTJbwb5g6pGpByTRbYKiSaX3w, n3qWzoBX24abCSq8hMMzmCb8dh5ePnhdmL]" -a "[1, 2, 3, 4]" and got:

Error: Amount of cards does not correspond to the spent coins. Use --force to override

What am I doing wrong here?
_
Update 23-07-2024
Today I've understood that if the brackets are put into quotes both for the list of receivers addresses (like this, for instance: "[mwvsHNwNQ8eiRFGHNqnpD7EdoFk5zzAdYH, mnYTcGF8vVuSAYeoxxNaFWX94QUFM92YZf, mk9WFSTqgtTJbwb5g6pGpByTRbYKiSaX3w, n3qWzoBX24abCSq8hMMzmCb8dh5ePnhdmL]") as for the list of amounts ("[100, 30, 3, 1]") and the sum of amounts corresponds to the whole amount to claim the command runs smoothly.
Maybe it worth mentioning both info in the pobtoken claim help.

Another condition I've just discovered is that any amount in the amounts' list can't be zero.

@buhtignew buhtignew added the error message An error message received label Jul 9, 2024
@buhtignew buhtignew added the enhancement New feature or request label Jul 23, 2024
@d5000
Copy link

d5000 commented Aug 2, 2024

I've mentioned the issue with the quotes in the help, so I'm closing.
I think that no zero is allowed should be obvious, it would make no sense.

@d5000 d5000 closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request error message An error message received
Projects
None yet
Development

No branches or pull requests

2 participants