Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

wallet/__init__.py:51: DeprecationWarning: Call to deprecated function tx_from_hex, use from_hex instead #99

@unsystemizer

Description

@unsystemizer
send --source mwzoMwyrYUPppubSzdcrG7wwuuGaQzkpp3 --destination \
n4D7ndiC4yLZxhAf726uMHXC914sEuUAcg --asset XCP --quantity 0.005 \
--fee 0

A special thing about this send is source is not a local address, so I was prompted to provide the privkey.
The first time I used this send I did and I didn't get any warning.

The second time (this time) I waited few minutes and then pasted it in the CLI, but it was too long before I did it, I suppose so I got asked again (in the log below), but this time I got this warning.
In both cases the transaction was broadcast okay.

Sign and broadcast? (y/N) y
Source address not in wallet. Please enter the private key in WIF format for mwzoMwyrYUPppubSzdcrG7wwuuGaQzkpp3: xxxxxxxxxxxxxxxxxxxxxxxxxx
/usr/local/lib/python3.5/dist-packages/counterpartycli/wallet/__init__.py:51: DeprecationWarning: Call to deprecated function tx_from_hex, use from_hex instead
  tx = Tx.tx_from_hex(tx_hex)
ERROR:pycoin.tx.script.vm:script failed for unknown reason
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pycoin-0.62-py3.5.egg/pycoin/tx/script/vm.py", line 93, in eval_script
    MICROCODE_LOOKUP[opcode](stack)
  File "/usr/local/lib/python3.5/dist-packages/pycoin-0.62-py3.5.egg/pycoin/tx/script/microcode.py", line 158, in do_OP_DUP
    stack.append(stack[-1])
IndexError: list index out of range
ERROR:pycoin.tx.script.vm:script failed for unknown reason
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pycoin-0.62-py3.5.egg/pycoin/tx/script/vm.py", line 93, in eval_script
    MICROCODE_LOOKUP[opcode](stack)
  File "/usr/local/lib/python3.5/dist-packages/pycoin-0.62-py3.5.egg/pycoin/tx/script/microcode.py", line 158, in do_OP_DUP
    stack.append(stack[-1])
IndexError: list index out of range
ERROR:pycoin.tx.script.vm:script failed for unknown reason
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pycoin-0.62-py3.5.egg/pycoin/tx/script/vm.py", line 93, in eval_script
    MICROCODE_LOOKUP[opcode](stack)
  File "/usr/local/lib/python3.5/dist-packages/pycoin-0.62-py3.5.egg/pycoin/tx/script/microcode.py", line 158, in do_OP_DUP
    stack.append(stack[-1])
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions