diff --git a/lib/plugins/wallet/bitgo/bitgo.js b/lib/plugins/wallet/bitgo/bitgo.js index faa623c1..cfc2a152 100644 --- a/lib/plugins/wallet/bitgo/bitgo.js +++ b/lib/plugins/wallet/bitgo/bitgo.js @@ -11,7 +11,7 @@ const NAME = 'BitGo' function buildBitgo (account) { const env = account.environment === 'test' ? 'test' : 'prod' - return new BitGo.BitGo({accessToken: account.token, env, userAgent: userAgent}) + return new BitGo.BitGo({ accessToken: account.token, env, userAgent: userAgent }) } function getWallet (account) { @@ -78,12 +78,12 @@ function newAddress (account, info) { function getStatus (account, toAddress, requested, cryptoCode) { const bitgo = buildBitgo(account) return checkCryptoCode(cryptoCode) - .then(() => bitgo.blockchain().getAddress({address: toAddress})) + .then(() => bitgo.blockchain().getAddress({ address: toAddress })) .then(rec => { - if (rec.balance === 0) return {status: 'notSeen'} - if (requested.gt(rec.balance)) return {status: 'insufficientFunds'} - if (requested.gt(rec.confirmedBalance)) return {status: 'authorized'} - return {status: 'confirmed'} + if (rec.balance === 0) return { status: 'notSeen' } + if (requested.gt(rec.balance)) return { status: 'insufficientFunds' } + if (requested.gt(rec.confirmedBalance)) return { status: 'authorized' } + return { status: 'confirmed' } }) } @@ -95,7 +95,7 @@ function newFunding (account, cryptoCode) { return wallet.createAddress() .then(result => { const fundingAddress = result.address - return wallet.updateAddress({address: fundingAddress, label: 'Funding Address'}) + return wallet.updateAddress({ address: fundingAddress, label: 'Funding Address' }) .then(() => ({ fundingPendingBalance: BN(wallet._wallet.balanceString), fundingConfirmedBalance: BN(wallet._wallet.confirmedBalanceString),