#Atelier_Ethereum_10mars2016
testrpc
truffle serve
web3.eth.accounts
web3.eth.blockNumber
=> 0
web3.eth.sendTransaction({from: web3.eth.coinbase, to: web3.eth.accounts[1], value : web3.toWei(50, 'ether')})
=> "0x37e64c314fec21e0a14ca07847d39470020194ec43b2ee811499630bb41239dd"
web3.eth.blockNumber
=> 1
truffle deploy
Democracy.deployed()
=> Democracy {contract: h, address: "0xc480993a2647ef7da2707d16ccc4eed2b5873570", web3: r}...
var dem = Democracy.deployed(); dem.votingTimeInMinutes().then(function(res){console.log(res)})
dem.votingTimeInMinutes().then(function(res){console.log(res.toString())})
dem.addProposal("Buy More Beers !", {from: web3.eth.coinbase})