Serpent tutorial needs update

koeppelmannkoeppelmann Member Posts: 51
Hi, I am trying to follow the serpent tutorial here:

My first problem is that I get a different result for:
> serpent compile

instead my result is:

pretty_compile and compile to lll also have different results.

However, the real problems comes when I try to load the contract with pyethereum:

> from pyethereum import tester as t
> s = t.state()
> c = s.abi_contract('')

Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pyethereum-0.7.51-py2.6.egg/pyethereum/", line 102, in abi_contract
return _abi_contract(me, code, sender, endowment)
File "/Library/Frameworks/Python.framework/Versions/6.3/lib/python2.6/site-packages/pyethereum-0.7.51-py2.6.egg/pyethereum/", line 77, in __init__
sig = serpent.mk_signature(code)
AttributeError: 'module' object has no attribute 'mk_signature'

Can anyone help my? Is the tutorial outdated or is something wrong with my installation?


Sign In or Register to comment.