@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
|
-
|
|
287
|
+
if (await n.getNewAddress({
|
|
288
288
|
privateKey: r
|
|
289
|
-
}) === t
|
|
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(
|