bug fixes

This commit is contained in:
Josh Harvey 2017-04-16 19:42:46 +03:00
parent f2a95e291a
commit 985e3811e3
14 changed files with 758 additions and 78 deletions

View file

@ -1,7 +1,7 @@
const BitGo = require('bitgo')
const BN = require('../../../bn')
const pjson = require('../../../package.json')
const pjson = require('../../../../package.json')
const userAgent = 'Lamassu-Server/' + pjson.version
const NAME = 'BitGo'
@ -51,8 +51,8 @@ function balance (account, cryptoCode) {
.then(wallet => BN(wallet.wallet.spendableConfirmedBalance))
}
function newAddress (account, cryptoCode, info) {
return checkCryptoCode(cryptoCode)
function newAddress (account, info) {
return checkCryptoCode(info.cryptoCode)
.then(() => getWallet(account))
.then(wallet => {
return wallet.createAddress()

View file

@ -1,30 +0,0 @@
{
"code": "bitgo",
"display": "BitGo",
"fields": [
{
"code": "token",
"display": "API token",
"fieldType": "string",
"secret": true,
"required": true,
"value": ""
},
{
"code": "walletId",
"display": "Wallet ID",
"fieldType": "string",
"secret": false,
"required": true,
"value": ""
},
{
"code": "walletPassphrase",
"display": "Wallet passphrase",
"fieldType": "string",
"secret": true,
"required": true,
"value": ""
}
]
}