Open yuzhangiot opened 9 years ago
The contracts and libraries are deprecated. The CLL language has since change into Serpent 2.0 (there is a Serpent 3.0 in the works): https://github.com/ethereum/wiki/wiki/Serpent
Thank you very much! Although I found some mistake in version 2.0 wiki. For example: serpent get_prefix double Unknown command Usage: serpent command input Where input -s for from stdin, a file, or interpreted as serpent code if does not exist as file.where command: parse: Just parses and returns s-expression code. rewrite: Parse, use rewrite rules print s-expressions of result. compile: Return resulting compiled EVM code in hex. assemble: Return result from step before compilation.
在 2015年6月5日,下午9:59,Joris Bontje notifications@github.com 写道:
The contracts and libraries are deprecated. The CLL language has since change into Serpent 2.0 (there is a Serpent 3.0 in the works): https://github.com/ethereum/wiki/wiki/Serpent https://github.com/ethereum/wiki/wiki/Serpent — Reply to this email directly or view it on GitHub https://github.com/jorisbontje/cll-sim/issues/18#issuecomment-109302366.
Joris, I watched your youtube video with Joel Dietz on "My first Ethereum contract: coding of escrow-multisig contract". Thanks and great work! I have a bit of a different situation for "escrow". I think escrow can also be defined as a situation where money is put up into an "escrow account" and certain conditions have to be met before it's paid out.
Let's say we have the following situation:
Is this something for which a smart contract can be written in Ethereum?
Thanks Chris
For example: when I am trying to ./run.py examples/escrow.py there are some errors: sim INFO RUN Test insufficient fee:
sim WARNING Stopped: Insufficient fee
Traceback (most recent call last):
File "./run.py", line 44, in
main(args.script)
File "./run.py", line 38, in main
simulation.run_all()
File "./lib/sim.py", line 218, in run_all
method()
File "examples/escrow.py", line 87, in test_insufficient_fee
self.run(tx, contract)
File "./lib/sim.py", line 244, in run
totalgas = gas.calculate_gas(contract)
File "./lib/sim.py", line 387, in calculate_gas
code_lines = contract.closure.split('\n')
AttributeError: 'Escrow' object has no attribute 'closure'
Looks like I miss some libraries?