fix: check for wallet tx batching support
This commit is contained in:
parent
73c0d09198
commit
8289c55acf
10 changed files with 77 additions and 26 deletions
|
|
@ -157,6 +157,11 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) {
|
|||
.then(() => account.environment === 'test' ? 'test' : 'main')
|
||||
}
|
||||
|
||||
function supportsBatching (account, cryptoCode) {
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => _.isFunction(sendCoinsBatch))
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
NAME,
|
||||
balance,
|
||||
|
|
@ -164,5 +169,6 @@ module.exports = {
|
|||
newAddress,
|
||||
getStatus,
|
||||
newFunding,
|
||||
cryptoNetwork
|
||||
cryptoNetwork,
|
||||
supportsBatching
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue