@ecency/wallets 1.0.10 → 1.0.12

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.
@@ -284,9 +284,10 @@ async function F(e, t, n, a) {
284
284
  mnemonic: e,
285
285
  hdPath: i
286
286
  });
287
- return await n.getNewAddress({
287
+ if (await n.getNewAddress({
288
288
  privateKey: r
289
- }) === t ? r : void 0;
289
+ }) === t)
290
+ return r;
290
291
  } catch {
291
292
  return;
292
293
  }
@@ -314,7 +315,7 @@ function pe(e, t) {
314
315
  }), y = await r.validPrivateKey({
315
316
  privateKey: a
316
317
  });
317
- c = w === i && y;
318
+ c = w.address === i && y.isValid;
318
319
  }
319
320
  if (!c)
320
321
  throw new Error(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/wallets",
3
3
  "private": false,
4
- "version": "1.0.10",
4
+ "version": "1.0.12",
5
5
  "type": "module",
6
6
  "main": "./dist/ecency-wallets.umd.js",
7
7
  "module": "./dist/ecency-wallets.es.js",