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
|
|
@ -29,7 +29,8 @@ module.exports = {
|
|||
newFunding,
|
||||
privateKey,
|
||||
isStrictAddress,
|
||||
connect
|
||||
connect,
|
||||
supportsBatching
|
||||
}
|
||||
|
||||
function connect (url) {
|
||||
|
|
@ -222,3 +223,8 @@ function newFunding (account, cryptoCode, settings, operatorId) {
|
|||
}))
|
||||
})
|
||||
}
|
||||
|
||||
function supportsBatching (account, cryptoCode) {
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => _.isFunction(sendCoinsBatch))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue