diff --git a/lib/plugins/wallet/bitcoincashd/bitcoincashd.js b/lib/plugins/wallet/bitcoincashd/bitcoincashd.js index 5d5f187d..7ba5871e 100644 --- a/lib/plugins/wallet/bitcoincashd/bitcoincashd.js +++ b/lib/plugins/wallet/bitcoincashd/bitcoincashd.js @@ -131,7 +131,7 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) { .then(() => parseInt(rpcConfig.port, 10) === 18332 ? 'test' : 'main') } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => SUPPORTS_BATCHING) } diff --git a/lib/plugins/wallet/bitcoind/bitcoind.js b/lib/plugins/wallet/bitcoind/bitcoind.js index 7aaeec1f..a5d5256d 100644 --- a/lib/plugins/wallet/bitcoind/bitcoind.js +++ b/lib/plugins/wallet/bitcoind/bitcoind.js @@ -172,7 +172,7 @@ function fetchRBF (txId) { }) } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => SUPPORTS_BATCHING) } diff --git a/lib/plugins/wallet/bitgo/bitgo.js b/lib/plugins/wallet/bitgo/bitgo.js index 56192de9..34621840 100644 --- a/lib/plugins/wallet/bitgo/bitgo.js +++ b/lib/plugins/wallet/bitgo/bitgo.js @@ -159,7 +159,7 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) { .then(() => account.environment === 'test' ? 'test' : 'main') } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => SUPPORTS_BATCHING) } diff --git a/lib/plugins/wallet/dashd/dashd.js b/lib/plugins/wallet/dashd/dashd.js index 74217b2b..79c773b7 100644 --- a/lib/plugins/wallet/dashd/dashd.js +++ b/lib/plugins/wallet/dashd/dashd.js @@ -114,7 +114,7 @@ function newFunding (account, cryptoCode, settings, operatorId) { })) } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => SUPPORTS_BATCHING) } diff --git a/lib/plugins/wallet/geth/base.js b/lib/plugins/wallet/geth/base.js index e85ab8cc..26b3a50d 100644 --- a/lib/plugins/wallet/geth/base.js +++ b/lib/plugins/wallet/geth/base.js @@ -226,7 +226,7 @@ function newFunding (account, cryptoCode, settings, operatorId) { }) } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => SUPPORTS_BATCHING) } diff --git a/lib/plugins/wallet/litecoind/litecoind.js b/lib/plugins/wallet/litecoind/litecoind.js index 5017252a..1b4c6236 100644 --- a/lib/plugins/wallet/litecoind/litecoind.js +++ b/lib/plugins/wallet/litecoind/litecoind.js @@ -114,7 +114,7 @@ function newFunding (account, cryptoCode, settings, operatorId) { })) } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => SUPPORTS_BATCHING) } diff --git a/lib/plugins/wallet/mock-wallet/mock-wallet.js b/lib/plugins/wallet/mock-wallet/mock-wallet.js index 31fa8f40..a7a9493c 100644 --- a/lib/plugins/wallet/mock-wallet/mock-wallet.js +++ b/lib/plugins/wallet/mock-wallet/mock-wallet.js @@ -112,7 +112,7 @@ function getStatus (account, tx, requested, settings, operatorId) { return Promise.resolve({status: 'confirmed'}) } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return Promise.resolve(_.includes(cryptoCode, BATCHABLE_COINS)) } diff --git a/lib/plugins/wallet/zcashd/zcashd.js b/lib/plugins/wallet/zcashd/zcashd.js index 4544f65d..b37d0dd3 100644 --- a/lib/plugins/wallet/zcashd/zcashd.js +++ b/lib/plugins/wallet/zcashd/zcashd.js @@ -140,7 +140,7 @@ function newFunding (account, cryptoCode, settings, operatorId) { })) } -function supportsBatching (account, cryptoCode) { +function supportsBatching (cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => SUPPORTS_BATCHING) } diff --git a/lib/wallet.js b/lib/wallet.js index a9fb15a6..6ed54f63 100644 --- a/lib/wallet.js +++ b/lib/wallet.js @@ -230,7 +230,7 @@ function isStrictAddress (settings, cryptoCode, toAddress) { function supportsBatching (settings, cryptoCode) { return fetchWallet(settings, cryptoCode) - .then(r => r.wallet.supportsBatching(settings, cryptoCode)) + .then(r => r.wallet.supportsBatching(cryptoCode)) } const coinFilter = ['ETH']