test - e2e - contract test - add logs

feature/default_network_editable
kumavis 6 years ago
parent b75abfac60
commit 2b2cd87e2d
  1. 8
      test/e2e/beta/contract-test/contract.js

@ -39,15 +39,17 @@ deployButton.addEventListener('click', function (event) {
gas: '4700000'
}, function (e, contract){
console.log(e, contract);
console.log('deployed!', contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
console.log(`contract`, contract);
depositButton.addEventListener('click', function (event) {
contract.deposit({ from: web3.eth.accounts[0], value: '0x29a2241af62c0000' }, function (result) {
console.log(result)
})
console.log('contract.deposit', { from: web3.eth.accounts[0], value: '0x29a2241af62c0000' })
contract.deposit({ from: web3.eth.accounts[0], value: '0x29a2241af62c0000' }, function (result) {
console.log(result)
})
})
withdrawButton.addEventListener('click', function (event) {

Loading…
Cancel
Save