Create, import join wallet BCH

This commit is contained in:
Gustavo Maximiliano Cortez 2017-08-28 12:57:32 -03:00
commit 5175e7e2c4
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
6 changed files with 44 additions and 2 deletions

View file

@ -15,6 +15,7 @@ angular.module('copayApp.controllers').controller('importController',
$scope.formData.bwsurl = defaults.bws.url;
$scope.formData.derivationPath = derivationPathHelper.default;
$scope.formData.account = 1;
$scope.formData.coin = 'btc';
$scope.importErr = false;
$scope.isCopay = appConfigService.name == 'copay';
$scope.fromHardwareWallet = { value: false };
@ -273,6 +274,7 @@ angular.module('copayApp.controllers').controller('importController',
}
opts.passphrase = $scope.formData.passphrase || null;
opts.coin = $scope.formData.coin;
if ($scope.fromHardwareWallet.value) {
$log.debug('Importing seed from hardware wallet');

View file

@ -10,6 +10,7 @@ angular.module('copayApp.controllers').controller('joinController',
$scope.formData.derivationPath = derivationPathHelper.default;
$scope.formData.account = 1;
$scope.formData.secret = null;
$scope.formData.coin = 'btc';
resetPasswordFields();
updateSeedSourceSelect();
});
@ -103,7 +104,8 @@ angular.module('copayApp.controllers').controller('joinController',
var opts = {
secret: $scope.formData.secret,
myName: $scope.formData.myName,
bwsurl: $scope.formData.bwsurl
bwsurl: $scope.formData.bwsurl,
coin: $scope.formData.coin
}
var setSeed = $scope.formData.seedSource.id == 'set';