fix: supportsBatching function
This commit is contained in:
parent
00c38ea721
commit
e6be999f02
7 changed files with 21 additions and 7 deletions
|
|
@ -14,6 +14,8 @@ const NAME = 'BitGo'
|
|||
const SUPPORTED_COINS = ['BTC', 'ZEC', 'LTC', 'BCH', 'DASH']
|
||||
const BCH_CODES = ['BCH', 'TBCH']
|
||||
|
||||
const SUPPORTS_BATCHING = false
|
||||
|
||||
function buildBitgo (account) {
|
||||
const env = account.environment === 'test' ? 'test' : 'prod'
|
||||
return new BitGo.BitGo({ accessToken: account.token.trim(), env, userAgent: userAgent })
|
||||
|
|
@ -159,7 +161,7 @@ function cryptoNetwork (account, cryptoCode, settings, operatorId) {
|
|||
|
||||
function supportsBatching (account, cryptoCode) {
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => _.isFunction(sendCoinsBatch))
|
||||
.then(() => SUPPORTS_BATCHING)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue