From 092a4fd71a582172cdb78e314db45553e27c2809 Mon Sep 17 00:00:00 2001 From: Kadir Sekha Date: Thu, 26 Oct 2017 16:17:25 +0900 Subject: [PATCH] use url from config service for tarascash conversion --- src/js/services/profileService.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index e4d3f978e..0a4dd20da 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -75,9 +75,8 @@ angular.module('copayApp.services') // Convert tarascash style bch wallet to copay style function convertToNewCashWallet(wallet) { - //var baseUrl = bwcService.getClient(null, null).baseUrl; - var baseUrl = 'https://bws-v2.bitcoin.com/bws/api'; - wallet.baseUrl = baseUrl; + var defaults = configService.getDefaults(); + wallet.baseUrl = defaults.bwscash.url; wallet.credentials.coin = 'bch'; wallet.credentials.network = 'livenet'; }