Ulf Norell 367f87b612 Implement namespaces
This includes a massive refactoring of the type checker, getting
rid of most of the ets tables and keeping a proper environment.
2019-02-08 14:16:06 +01:00

14 lines
273 B
Plaintext

// Test more advanced chain interactions
contract ChainTest =
record state = { last_bf : address }
function init() : state =
{last_bf = Contract.address}
function miner() = Chain.coinbase
function save_coinbase() =
put(state{last_bf = Chain.coinbase})