First test work commit, don't touch
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// Test more advanced chain interactions
|
||||
|
||||
contract Chain =
|
||||
|
||||
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})
|
||||
Reference in New Issue
Block a user