@rabby-wallet/eth-hd-keyring 4.3.3-0 → 4.3.3-1
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/dist/index.js +3 -4
- package/index.ts +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2429,7 +2429,6 @@ var _HdKeyring = class _HdKeyring extends import_eth_simple_keyring.default {
|
|
|
2429
2429
|
this.deserialize(opts);
|
|
2430
2430
|
}
|
|
2431
2431
|
serialize() {
|
|
2432
|
-
var _a;
|
|
2433
2432
|
return Promise.resolve({
|
|
2434
2433
|
mnemonic: this.mnemonic,
|
|
2435
2434
|
/**
|
|
@@ -2438,7 +2437,7 @@ var _HdKeyring = class _HdKeyring extends import_eth_simple_keyring.default {
|
|
|
2438
2437
|
activeIndexes: this.activeIndexes,
|
|
2439
2438
|
hdPath: this.hdPath,
|
|
2440
2439
|
byImport: this.byImport,
|
|
2441
|
-
hasBackup:
|
|
2440
|
+
hasBackup: this.hasBackup,
|
|
2442
2441
|
index: this.index,
|
|
2443
2442
|
needPassphrase: this.needPassphrase,
|
|
2444
2443
|
accounts: this.accounts,
|
|
@@ -2448,12 +2447,12 @@ var _HdKeyring = class _HdKeyring extends import_eth_simple_keyring.default {
|
|
|
2448
2447
|
});
|
|
2449
2448
|
}
|
|
2450
2449
|
deserialize(opts = {}) {
|
|
2451
|
-
var _a;
|
|
2452
2450
|
this.wallets = [];
|
|
2453
2451
|
this.mnemonic = null;
|
|
2454
2452
|
this.hdPath = opts.hdPath || HD_PATH_BASE["BIP44" /* BIP44 */];
|
|
2455
2453
|
this.byImport = !!opts.byImport;
|
|
2456
|
-
this.hasBackup =
|
|
2454
|
+
this.hasBackup = opts.hasBackup;
|
|
2455
|
+
console.log("opts.index", opts);
|
|
2457
2456
|
this.index = opts.index || 0;
|
|
2458
2457
|
this.needPassphrase = opts.needPassphrase || !!opts.passphrase;
|
|
2459
2458
|
this.passphrase = opts.passphrase;
|
package/index.ts
CHANGED
|
@@ -96,7 +96,7 @@ class HdKeyring extends SimpleKeyring {
|
|
|
96
96
|
activeIndexes: this.activeIndexes,
|
|
97
97
|
hdPath: this.hdPath,
|
|
98
98
|
byImport: this.byImport,
|
|
99
|
-
hasBackup: this.hasBackup
|
|
99
|
+
hasBackup: this.hasBackup,
|
|
100
100
|
index: this.index,
|
|
101
101
|
needPassphrase: this.needPassphrase,
|
|
102
102
|
accounts: this.accounts,
|
|
@@ -111,7 +111,8 @@ class HdKeyring extends SimpleKeyring {
|
|
|
111
111
|
this.mnemonic = null;
|
|
112
112
|
this.hdPath = opts.hdPath || HD_PATH_BASE[HDPathType.BIP44];
|
|
113
113
|
this.byImport = !!opts.byImport;
|
|
114
|
-
this.hasBackup = opts.hasBackup
|
|
114
|
+
this.hasBackup = opts.hasBackup;
|
|
115
|
+
console.log('opts.index', opts);
|
|
115
116
|
this.index = opts.index || 0;
|
|
116
117
|
this.needPassphrase = opts.needPassphrase || !!opts.passphrase;
|
|
117
118
|
this.passphrase = opts.passphrase;
|