fix: remove settings parameter from individual wallet interfaces

This commit is contained in:
Sérgio Salgado 2021-06-09 14:39:36 +01:00
parent e6be999f02
commit bef24cf3a3
9 changed files with 9 additions and 9 deletions

View file

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

View file

@ -172,7 +172,7 @@ function fetchRBF (txId) {
})
}
function supportsBatching (account, cryptoCode) {
function supportsBatching (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => SUPPORTS_BATCHING)
}

View file

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

View file

@ -114,7 +114,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
}))
}
function supportsBatching (account, cryptoCode) {
function supportsBatching (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => SUPPORTS_BATCHING)
}

View file

@ -226,7 +226,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
})
}
function supportsBatching (account, cryptoCode) {
function supportsBatching (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => SUPPORTS_BATCHING)
}

View file

@ -114,7 +114,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
}))
}
function supportsBatching (account, cryptoCode) {
function supportsBatching (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => SUPPORTS_BATCHING)
}

View file

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

View file

@ -140,7 +140,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
}))
}
function supportsBatching (account, cryptoCode) {
function supportsBatching (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => SUPPORTS_BATCHING)
}

View file

@ -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']