|
|
|
@ -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) { |
|
|
|
|