commond.log 781 B

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