Refactor clearKey to better named clearKeys

This commit is contained in:
Ian Coleman
2017-08-02 16:28:12 +10:00
parent 684624b522
commit fa2e4e936e

View File

@@ -625,7 +625,7 @@
function clearDisplay() {
clearAddressesList();
clearKey();
clearKeys();
hideValidationError();
}
@@ -641,10 +641,20 @@
}
}
function clearKey() {
function clearKeys() {
clearRootKey();
clearDerivedKeys();
}
function clearRootKey() {
DOM.rootKey.val("");
}
function clearDerivedKeys() {
DOM.extendedPrivKey.val("");
DOM.extendedPubKey.val("");
DOM.bip44accountXprv.val("");
DOM.bip44accountXpub.val("");
}
function addAddressToList(indexText, address, pubkey, privkey) {