Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(import): right key imported.
Browse files Browse the repository at this point in the history
  • Loading branch information
sha49 committed Feb 16, 2016
1 parent 0e8dc31 commit 6c3b86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockchain-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ Wallet.prototype.importLegacyAddress = function (addr, label, secPass, bipPass)
var importAddress = function (ad) {
if (this.containsLegacyAddress(ad)) {
if (this.key(ad.address).isWatchOnly && !ad.isWatchOnly) {
return this.addKeyToLegacyAddress(ad.priv, ad.address, secPass, bipPass);
return this.addKeyToLegacyAddress(addr, ad.address, secPass, bipPass);
} else {
throw 'presentInWallet';
}
Expand Down

0 comments on commit 6c3b86b

Please sign in to comment.