Serpent tutorial needs update

koeppelmannkoeppelmann Posts: 51
Hi, I am trying to follow the serpent tutorial here: https://github.com/ethereum/wiki/wiki/Serpent

My first problem is that I get a different result for:
> serpent compile mul2.se
602380600b600039602e5660003560001a600014156022576020600160203760026020510260405260206040f25b5b6000f2

instead my result is:
602480600b600039602f5660003560001a600081141560225760013560605260026060510260805260206080f35b505b6000f3

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('mul2.se')

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/tester.py", 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/tester.py", 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?
Thanks.

Comments

Sign In or Register to comment.