aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/beta/contract-test/contract.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-08-08 14:32:35 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-08-08 14:32:35 +0800
commit2e0916d8ff17c89147005d22e8c100113aaf3360 (patch)
treec65e20274296658c753e40619eb5cfe0062dc12d /test/e2e/beta/contract-test/contract.js
parentef9435e3d0036af1358bb2a5faec5ce69ef159e7 (diff)
parentaab6e366c5162a85ae7853f5da29321f3d767cf4 (diff)
downloadtangerine-wallet-browser-2e0916d8ff17c89147005d22e8c100113aaf3360.tar.gz
tangerine-wallet-browser-2e0916d8ff17c89147005d22e8c100113aaf3360.tar.zst
tangerine-wallet-browser-2e0916d8ff17c89147005d22e8c100113aaf3360.zip
fix merge conflicts
Diffstat (limited to 'test/e2e/beta/contract-test/contract.js')
-rw-r--r--test/e2e/beta/contract-test/contract.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/beta/contract-test/contract.js b/test/e2e/beta/contract-test/contract.js
index 8af008dce..51891ea21 100644
--- a/test/e2e/beta/contract-test/contract.js
+++ b/test/e2e/beta/contract-test/contract.js
@@ -50,15 +50,20 @@ deployButton.addEventListener('click', async function (event) {
console.log(`contract`, contract)
+ document.getElementById('contractStatus').innerHTML = 'Deployed'
+
depositButton.addEventListener('click', function (event) {
+ document.getElementById('contractStatus').innerHTML = 'Deposit initiated'
contract.deposit({ from: web3.eth.accounts[0], value: '0x3782dace9d900000' }, function (result) {
console.log(result)
+ document.getElementById('contractStatus').innerHTML = 'Deposit completed'
})
})
withdrawButton.addEventListener('click', function (event) {
contract.withdraw('0xde0b6b3a7640000', { from: web3.eth.accounts[0] }, function (result) {
console.log(result)
+ document.getElementById('contractStatus').innerHTML = 'Withdrawn'
})
})
}