mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
test - e2e - contract test - add logs
This commit is contained in:
parent
b75abfac60
commit
2b2cd87e2d
@ -39,15 +39,17 @@ deployButton.addEventListener('click', function (event) {
|
|||||||
gas: '4700000'
|
gas: '4700000'
|
||||||
}, function (e, contract){
|
}, function (e, contract){
|
||||||
console.log(e, contract);
|
console.log(e, contract);
|
||||||
|
console.log('deployed!', contract);
|
||||||
if (typeof contract.address !== 'undefined') {
|
if (typeof contract.address !== 'undefined') {
|
||||||
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
|
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
|
||||||
|
|
||||||
console.log(`contract`, contract);
|
console.log(`contract`, contract);
|
||||||
|
|
||||||
depositButton.addEventListener('click', function (event) {
|
depositButton.addEventListener('click', function (event) {
|
||||||
contract.deposit({ from: web3.eth.accounts[0], value: '0x29a2241af62c0000' }, function (result) {
|
console.log('contract.deposit', { from: web3.eth.accounts[0], value: '0x29a2241af62c0000' })
|
||||||
console.log(result)
|
contract.deposit({ from: web3.eth.accounts[0], value: '0x29a2241af62c0000' }, function (result) {
|
||||||
})
|
console.log(result)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
withdrawButton.addEventListener('click', function (event) {
|
withdrawButton.addEventListener('click', function (event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user