slimcoin-project / pacli

Simple CLI PeerAssets client (extended version).
GNU General Public License v3.0
0 stars 0 forks source link

attoken create_tx advanced mode testing #161

Closed buhtignew closed 3 months ago

buhtignew commented 4 months ago

I've tested attoken create_tx mpmZCVusQ6WoWHcFTAizmEcqSXdu5YX5PV 1 -c n3MtPoPaAREU5GEhAErBPuju83bVog2opz, attoken create_tx mpmZCVusQ6WoWHcFTAizmEcqSXdu5YX5PV 1 and attoken create_tx mmLRYBJMsLBrHCGQAwx4fwMt3egt1J3qbo 1 -c n3MtPoPaAREU5GEhAErBPuju83bVog2opz and in all the three cases I've got the following error message after I've confirmed I'm aware about the possible incompatibilities:

  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 51, in create_tx
    return ei.run_command(self.__create_tx, address_or_deck=address_or_deck, amount=amount, tx_fee=tx_fee, change=change, sign=sign, send=send, wait_for_confirmation=wait_for_confirmation, verify=verify, quiet=quiet, debug=debug, no_confirmation=no_confirmation)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/pacli/extended_interface.py", line 33, in run_command
    result = c(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/pacli/at_classes.py", line 83, in __create_tx
    rawtx = au.create_simple_transaction(amount=dec_amount, dest_address=address, change_address=change_address, debug=debug)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.12/site-packages/pacli/at_utils.py", line 27, in create_simple_transaction
    dtx.add_change_output(change_address)
  File "~/.local/lib/python3.12/site-packages/pypeerassets/at/mutable_transactions.py", line 105, in add_change_output
    self.add_p2pkh_output(address, sats=change_amount, output_index=output_index)
  File "~/.local/lib/python3.12/site-packages/pypeerassets/at/mutable_transactions.py", line 75, in add_p2pkh_output
    raise ValueError()
ValueError
d5000 commented 3 months ago

Couldn't reproduce the error. I believe this could have been fixed earlier as I changed the way the change address is processed in these commands.

If it works now, the issue can be closed.

buhtignew commented 3 months ago

The error is gone.