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

token spawn -h #137

Open
buhtignew opened this issue Jul 4, 2024 · 1 comment
Open

token spawn -h #137

buhtignew opened this issue Jul 4, 2024 · 1 comment
Assignees
Labels
error message An error message received on hold will be solved later

Comments

@buhtignew
Copy link
Collaborator

buhtignew commented Jul 4, 2024

As required by you here I've begin looking into token spawn command.
To do so I've run token spawn -h and got the following error:

  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/__main__.py", line 175, in spawn
    deck = self.__new(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^
TypeError: Deck.__new() got an unexpected keyword argument 'h'

I'm getting the same error if I run deck spawn -h as well.

The deck spawn/token spawn provides the following error message:

  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/__main__.py", line 175, in spawn
    deck = self.__new(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^
TypeError: Deck.__new() missing 3 required positional arguments: 'name', 'number_of_decimals', and 'issue_mode'

_
Or you meant I should test podtoken deck_spawn and attoken deck_spawn commands instead?

@buhtignew buhtignew added the error message An error message received label Jul 4, 2024
@d5000
Copy link

d5000 commented Jul 24, 2024

Taken note of this bug. It's only present on the original (vanilla) command, but of course the help function in theory should work in this original too. I'll put this on hold as the other vanilla commands, I'll look at this when I do the unittests for pacli.

Or you meant I should test podtoken deck_spawn and attoken deck_spawn commands instead?

This was in reality my intention - spawning PoB (and later PoD) tokens would be more important to look at. It has been tested several times and not much has changed, but more to see if the "lifecycle" of PoB tokens is working well and is reasonably intuitive from the start.

@d5000 d5000 self-assigned this Jul 24, 2024
@d5000 d5000 added the on hold will be solved later label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error message An error message received on hold will be solved later
Projects
None yet
Development

No branches or pull requests

2 participants