hodl-wallet 1.3.8 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -93,12 +93,12 @@ class Wallet {
|
|
|
93
93
|
async loadAccount(forceReload = false) {
|
|
94
94
|
let account = this.db.secureGet('account');
|
|
95
95
|
|
|
96
|
-
const choices = ['Create New Account', 'Import Mnemonic (12 words)', 'Import
|
|
96
|
+
const choices = ['Create New Account', 'Import Mnemonic (12 words)', 'Import Private-key'];
|
|
97
97
|
|
|
98
98
|
if (forceReload) {
|
|
99
99
|
choices.push('Export Account');
|
|
100
100
|
choices.push('Switch Network');
|
|
101
|
-
choices.push('Go
|
|
101
|
+
choices.push('Go Back');
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (!account || forceReload) {
|
|
@@ -109,7 +109,7 @@ class Wallet {
|
|
|
109
109
|
choices,
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
if (accountAction === 'Go
|
|
112
|
+
if (accountAction === 'Go Back') {
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -166,7 +166,7 @@ class Wallet {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
if (accountAction === 'Import
|
|
169
|
+
if (accountAction === 'Import Private-key') {
|
|
170
170
|
const { privateKey } = await inquirer.prompt({
|
|
171
171
|
type: 'password',
|
|
172
172
|
name: 'privateKey',
|