fix create and join bws errors
This commit is contained in:
parent
808c7f74a5
commit
3d7132861d
7 changed files with 73 additions and 82 deletions
|
|
@ -56,6 +56,7 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
name: form.walletName.$modelValue,
|
||||
myName: $scope.totalCopayers > 1 ? form.myName.$modelValue : null,
|
||||
networkName: form.isTestnet.$modelValue ? 'testnet' : 'livenet',
|
||||
bwsurl: $scope.bwsurl
|
||||
};
|
||||
var setSeed = form.setSeed.$modelValue;
|
||||
if (setSeed) {
|
||||
|
|
@ -111,15 +112,6 @@ angular.module('copayApp.controllers').controller('createController',
|
|||
return;
|
||||
}
|
||||
|
||||
var opts_ = {
|
||||
bws: {}
|
||||
};
|
||||
opts_.bws[walletId] = $scope.bwsurl;
|
||||
configService.set(opts_, function(err) {
|
||||
if (err) console.log(err);
|
||||
go.walletHome();
|
||||
});
|
||||
|
||||
if (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey) {
|
||||
if (opts.n == 1) {
|
||||
$rootScope.$emit('Local/WalletImported', walletId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue