@rabby-wallet/eth-hd-keyring 3.6.6 → 3.6.8

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 CHANGED
@@ -50,7 +50,7 @@ class HdKeyring extends eth_simple_keyring_1.default {
50
50
  this._index2wallet = {};
51
51
  this.activeIndexes = [];
52
52
  this.page = 0;
53
- this.perPage = 10;
53
+ this.perPage = 5;
54
54
  this.deserialize(opts);
55
55
  }
56
56
  serialize() {
@@ -163,7 +163,7 @@ class HdKeyring extends eth_simple_keyring_1.default {
163
163
  }
164
164
  getIndexByAddress(address) {
165
165
  for (const key in this._index2wallet) {
166
- if (this._index2wallet[key][0] === address) {
166
+ if (this._index2wallet[key][0].toLowerCase() === address.toLowerCase()) {
167
167
  return Number(key);
168
168
  }
169
169
  }
package/index.ts CHANGED
@@ -25,7 +25,7 @@ class HdKeyring extends SimpleKeyring {
25
25
  _index2wallet: Record<number, [string, Wallet]> = {};
26
26
  activeIndexes: number[] = [];
27
27
  page = 0;
28
- perPage = 10;
28
+ perPage = 5;
29
29
 
30
30
  /* PUBLIC METHODS */
31
31
  constructor(opts = {}) {
@@ -173,7 +173,7 @@ class HdKeyring extends SimpleKeyring {
173
173
 
174
174
  getIndexByAddress(address: string): number | null {
175
175
  for (const key in this._index2wallet) {
176
- if (this._index2wallet[key][0] === address) {
176
+ if (this._index2wallet[key][0].toLowerCase() === address.toLowerCase()) {
177
177
  return Number(key);
178
178
  }
179
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/eth-hd-keyring",
3
- "version": "3.6.6",
3
+ "version": "3.6.8",
4
4
  "description": "A simple standard interface for a seed phrase generated set of Ethereum accounts.",
5
5
  "keywords": [
6
6
  "ethereum",