jorisbontje / cll-sim

Ethereum CLL Contract Simulator
57 stars 12 forks source link

Some more members that blocks, contracts have. #5

Closed o-jasper closed 10 years ago

o-jasper commented 10 years ago

I already added for my own purposes(serving-and-viewing data PoC) block.number and block.parenthash just by setting self.thing. Dont see contract.balance or something.. (well, block.account_balance(contract.address) i suppose)

jorisbontje commented 10 years ago

I have added block.number, block.difficulty and block.parenthash. They have default values, but can be set through the Block constructor with named arguments.

The idiomatic way to get the contract balance in CLL is indeed block.account_balance(contract.address).