fix: remove settings parameter from individual wallet interfaces
This commit is contained in:
parent
e6be999f02
commit
bef24cf3a3
9 changed files with 9 additions and 9 deletions
|
|
@ -131,7 +131,7 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) {
|
||||||
.then(() => parseInt(rpcConfig.port, 10) === 18332 ? 'test' : 'main')
|
.then(() => parseInt(rpcConfig.port, 10) === 18332 ? 'test' : 'main')
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => SUPPORTS_BATCHING)
|
.then(() => SUPPORTS_BATCHING)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ function fetchRBF (txId) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => SUPPORTS_BATCHING)
|
.then(() => SUPPORTS_BATCHING)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) {
|
||||||
.then(() => account.environment === 'test' ? 'test' : 'main')
|
.then(() => account.environment === 'test' ? 'test' : 'main')
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => SUPPORTS_BATCHING)
|
.then(() => SUPPORTS_BATCHING)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => SUPPORTS_BATCHING)
|
.then(() => SUPPORTS_BATCHING)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => SUPPORTS_BATCHING)
|
.then(() => SUPPORTS_BATCHING)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => SUPPORTS_BATCHING)
|
.then(() => SUPPORTS_BATCHING)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ function getStatus (account, tx, requested, settings, operatorId) {
|
||||||
return Promise.resolve({status: 'confirmed'})
|
return Promise.resolve({status: 'confirmed'})
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return Promise.resolve(_.includes(cryptoCode, BATCHABLE_COINS))
|
return Promise.resolve(_.includes(cryptoCode, BATCHABLE_COINS))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ function newFunding (account, cryptoCode, settings, operatorId) {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
function supportsBatching (account, cryptoCode) {
|
function supportsBatching (cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => SUPPORTS_BATCHING)
|
.then(() => SUPPORTS_BATCHING)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,7 @@ function isStrictAddress (settings, cryptoCode, toAddress) {
|
||||||
|
|
||||||
function supportsBatching (settings, cryptoCode) {
|
function supportsBatching (settings, cryptoCode) {
|
||||||
return fetchWallet(settings, cryptoCode)
|
return fetchWallet(settings, cryptoCode)
|
||||||
.then(r => r.wallet.supportsBatching(settings, cryptoCode))
|
.then(r => r.wallet.supportsBatching(cryptoCode))
|
||||||
}
|
}
|
||||||
|
|
||||||
const coinFilter = ['ETH']
|
const coinFilter = ['ETH']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue