add test and adv opts to create

This commit is contained in:
Matias Alejo Garcia 2014-08-21 14:54:36 -04:00
commit 291ed73916
5 changed files with 49 additions and 7 deletions

View file

@ -41,6 +41,7 @@ angular.module('copayApp.controllers').controller('SetupController',
$scope.loading = false;
$scope.walletPassword = $rootScope.walletPassword;
$scope.isMobile = !!window.cordova;
$scope.hideAdv = true;
// ng-repeat defined number of times instead of repeating over array?
$scope.getNumber = function(num) {
@ -82,6 +83,7 @@ angular.module('copayApp.controllers').controller('SetupController',
name: $scope.walletName,
nickname: $scope.myNickname,
passphrase: passphrase,
privateKeyHex: $scope.private,
};
var w = walletFactory.create(opts);
controllerUtils.startNetwork(w, $scope);