diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-05-09 03:51:33 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2019-05-09 03:51:33 +0800 |
commit | 094e4cf555c698bfef50ca6679cd1e98f4ea9aa1 (patch) | |
tree | cd2b1df66e2a00cc7c24f2c09e28f28f10262a43 /test/e2e | |
parent | ef8a07c2ce2b1c5fc4ef18f48592b2e7da178c44 (diff) | |
download | tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.gz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.bz2 tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.lz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.xz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.zst tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.zip |
Check for unused function arguments (#6583)
* eslint: Check for unused function arguments
* eslint: Ignore unused '_' in argument list
Also allow any number of '_' e.g., '__' or '___' which is to be used sparingly
* Remove and rename unused arguments
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/beta/contract-test/contract.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/e2e/beta/contract-test/contract.js b/test/e2e/beta/contract-test/contract.js index 65fb9377f..e247e26ea 100644 --- a/test/e2e/beta/contract-test/contract.js +++ b/test/e2e/beta/contract-test/contract.js @@ -38,7 +38,7 @@ web3.currentProvider.enable().then(() => { const transferTokens = document.getElementById('transferTokens') const approveTokens = document.getElementById('approveTokens') - deployButton.addEventListener('click', async function (event) { + deployButton.addEventListener('click', async function () { document.getElementById('contractStatus').innerHTML = 'Deploying' var piggybank = await piggybankContract.new( @@ -55,7 +55,7 @@ web3.currentProvider.enable().then(() => { document.getElementById('contractStatus').innerHTML = 'Deployed' - depositButton.addEventListener('click', function (event) { + depositButton.addEventListener('click', function () { document.getElementById('contractStatus').innerHTML = 'Deposit initiated' contract.deposit({ from: web3.eth.accounts[0], value: '0x3782dace9d900000' }, function (result) { console.log(result) @@ -63,7 +63,7 @@ web3.currentProvider.enable().then(() => { }) }) - withdrawButton.addEventListener('click', function (event) { + withdrawButton.addEventListener('click', function () { contract.withdraw('0xde0b6b3a7640000', { from: web3.eth.accounts[0] }, function (result) { console.log(result) document.getElementById('contractStatus').innerHTML = 'Withdrawn' @@ -75,7 +75,7 @@ web3.currentProvider.enable().then(() => { console.log(piggybank) }) - sendButton.addEventListener('click', function (event) { + sendButton.addEventListener('click', function () { web3.eth.sendTransaction({ from: web3.eth.accounts[0], to: '0x2f318C334780961FB129D2a6c30D0763d9a5C970', @@ -88,7 +88,7 @@ web3.currentProvider.enable().then(() => { }) - createToken.addEventListener('click', async function (event) { + createToken.addEventListener('click', async function () { var _initialAmount = 100 var _tokenName = 'TST' var _decimalUnits = 0 @@ -124,7 +124,7 @@ web3.currentProvider.enable().then(() => { }) }) - approveTokens.addEventListener('click', function (event) { + approveTokens.addEventListener('click', function () { contract.approve('0x2f318C334780961FB129D2a6c30D0763d9a5C970', '7', { from: web3.eth.accounts[0], to: contract.address, |