(pyethapp) urugang@urugang-P65xHP:~/codes/pyethapp/serpent$ py.test
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.13, pytest-3.1.2, py-1.4.34, pluggy-0.4.0
rootdir: /home/urugang/codes/pyethapp/serpent, inifile:
plugins: timeout-1.0.0, catchlog-1.2.2
collected 0 items / 3 errors
===================================================================================================== ERRORS ======================================================================================================
__ ERROR collecting examples/cyberdyne/test/test_heap.py __
examples/cyberdyne/test/test_heap.py:1: in <module>
from ethereum import tester, utils
../local/lib/python2.7/site-packages/ethereum-1.4.0-py2.7.egg/ethereum/tester.py:47: in <module>
import serpent
../bin/serpent.py:4: in <module>
import('pkg_resources').run_script('ethereum-serpent==2.0.2', 'serpent.py')
../local/lib/python2.7/site-packages/pkg_resources/init.py:739: in run_script
self.require(requires)[0].run_script(script_name, ns)
../local/lib/python2.7/site-packages/pkg_resources/init.py:1495: in run_script
raise ResolutionError("No script named %r" % script_name)
E ResolutionError: No script named 'serpent.py'
604380600b600039604e567c01000000000000000000000000000000000000000000000000000000006000350463eee9720681141560415760043560405260026040510260605260206060f35b505b6000f3
6100448061000e600039610052567c010000000000000000000000000000000000000000000000000000000060003504636ffa1caa8114156100425760043560405260026040510260605260206060f35b505b6000f3
[PUSH1, 67, DUP1, PUSH1, 11, PUSH1, 0, CODECOPY, PUSH1, 78, JUMP, PUSH29, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, PUSH1, 0, CALLDATALOAD, DIV, PUSH4, 238, 233, 114, 6, DUP2, EQ, ISZERO, PUSH1, 65, JUMPI, PUSH1, 4, CALLDATALOAD, PUSH1, 64, MSTORE, PUSH1, 2, PUSH1, 64, MLOAD, MUL, PUSH1, 96, MSTORE, PUSH1, 32, PUSH1, 96, RETURN, JUMPDEST, POP, JUMPDEST, PUSH1, 0, RETURN]
[PUSH2, 0, 68, DUP1, PUSH2, 0, 14, PUSH1, 0, CODECOPY, PUSH2, 0, 82, JUMP, PUSH29, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, PUSH1, 0, CALLDATALOAD, DIV, PUSH4, 111, 250, 28, 170, DUP2, EQ, ISZERO, PUSH2, 0, 66, JUMPI, PUSH1, 4, CALLDATALOAD, PUSH1, 64, MSTORE, PUSH1, 2, PUSH1, 64, MLOAD, MUL, PUSH1, 96, MSTORE, PUSH1, 32, PUSH1, 96, RETURN, JUMPDEST, POP, JUMPDEST, PUSH1, 0, RETURN]
create
a contract and invoke a function on it. I'm using the tester module in pyethereum, and when I try to invoke the returnten
function from the console, I get a ethereum.tools.tester.TransactionFailed
. Any ideas, or some way to get more info on what could have caused the transaction to fail?
create
, and it actually returns an addess-like