I am learning Serpent with pyethereum in Spyder (so I have a running log of what I have tried and learned), but I am stuck in translating standard features of Serpent (such as
pretty_compile) from python.
For example, how do I
pretty_compile the standard multiply by 2 contract?
import serpent from ethereum import tester, utils, abi # Initialize tester blockchain s = tester.state() serpent_code = ''' def double(x): return(x*2) ''' c = s.abi_contract(serpent_code) # Usual compiling
Is there a
pretty_compile argument of
abi_contract, or perhaps of