add coin to getUtxo

This commit is contained in:
matiu 2017-09-12 23:42:14 -03:00
parent c6269a39a5
commit 570c8c193f
1 changed files with 2 additions and 1 deletions

View File

@ -1077,7 +1077,8 @@ WalletService.prototype._getUtxos = function(coin, addresses, cb) {
var self = this;
if (addresses.length == 0) return cb(null, []);
var networkName = Bitcore.Address(addresses[0]).toObject().network;
var networkName = Bitcore_[coin].Address(addresses[0]).toObject().network;
var bc = self._getBlockchainExplorer(coin, networkName);
if (!bc) return cb(new Error('Could not get blockchain explorer instance'));