12345678910111213 |
- Payroll.deployed().then(instance => payroll = instance)
- web3.fromWei(web3.eth.getBalance('0x9fbda871d559710256a2502a2517b794b482db40').toNumber(),'ether')
- web3.fromWei(web3.eth.getBalance(web3.eth.accounts[0]).toNumber())
- payroll.addFund({from: web3.eth.accounts[0], value: 60000000000000000000})
- payroll.addEmployee(web3.eth.accounts[2], 2, {from: web3.eth.accounts[0]})
- payroll.addEmployee(web3.eth.accounts[1], 2)
- payroll.checkEmployee(web3.eth.accounts[1])
- payroll.checkEmployee(web3.eth.accounts[1]).then(res => console.log(web3.fromWei(res[0].toNumber(),'ether')))
- payroll.checkEmployee(web3.eth.accounts[1]).then(res => console.log(res[1].toNumber()))
- eth.sendTransaction({from:eth.accounts[0],to:"0xdC75EB0973F96b735087B6B2f20ef73595509354",value:web3.toWei(3,"ether")})
|