mirror of https://github.com/BTCPrivate/copay.git
add test for priv key import
This commit is contained in:
parent
ca23aed70f
commit
4b3cbfcfb0
|
@ -2,7 +2,7 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('BackupController',
|
||||
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils) {
|
||||
var s = ($location.search()).showPrivate;
|
||||
var s = ($location.search()).advanced;
|
||||
if (s) {
|
||||
var w = $rootScope.wallet;
|
||||
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
|
||||
|
|
|
@ -15,7 +15,7 @@ angular.module('copayApp.controllers').controller('JoinController',
|
|||
var context;
|
||||
var localMediaStream;
|
||||
|
||||
var s = ($location.search()).enterPrivate;
|
||||
var s = ($location.search()).advanced;
|
||||
if (s) {
|
||||
$scope.enterPrivate = true;
|
||||
}
|
||||
|
|
|
@ -224,7 +224,7 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
|
|||
networkName: this.networkName,
|
||||
};
|
||||
|
||||
if (privateHex && privateHex.length>10) {
|
||||
if (privateHex && privateHex.length>1) {
|
||||
privOpts.extendedPrivateKeyString = privateHex;
|
||||
}
|
||||
|
||||
|
|
|
@ -69,9 +69,9 @@
|
|||
match="joinPassword" required>
|
||||
|
||||
<input type="text"
|
||||
placeholder="Private"
|
||||
placeholder="Private Key (Hex)"
|
||||
name="private"
|
||||
ng-model="private"
|
||||
ng-model="$parent.private"
|
||||
ng-if="enterPrivate">
|
||||
|
||||
<div class="text-right">
|
||||
|
|
Loading…
Reference in New Issue