@ecency/wallets 1.3.8 → 1.3.10
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/ecency-sdk.es.js +7 -3
- package/package.json +1 -1
package/dist/ecency-sdk.es.js
CHANGED
|
@@ -22642,7 +22642,11 @@ function cc(a, h = !1) {
|
|
|
22642
22642
|
a,
|
|
22643
22643
|
$t.filter(({ type: b }) => b === "CHAIN"),
|
|
22644
22644
|
$t.map((b) => (b.meta.show = h, b)),
|
|
22645
|
-
|
|
22645
|
+
// Chain tokens are unique by symbol, so indexing by symbol
|
|
22646
|
+
// gives a direct lookup map instead of an array-based grouping.
|
|
22647
|
+
$t.indexBy(
|
|
22648
|
+
(b) => b.symbol
|
|
22649
|
+
)
|
|
22646
22650
|
) : {};
|
|
22647
22651
|
}
|
|
22648
22652
|
function f1(a) {
|
|
@@ -22655,10 +22659,10 @@ function f1(a) {
|
|
|
22655
22659
|
throw new Error("[SDK][Wallets] – no account data to save wallets");
|
|
22656
22660
|
const i = cc(
|
|
22657
22661
|
(r = b.profile) == null ? void 0 : r.tokens
|
|
22658
|
-
), p = s.map(({ currency: e, type: t,
|
|
22662
|
+
), p = s.map(({ currency: e, type: t, privateKey: o, ...u }) => ({
|
|
22659
22663
|
symbol: e,
|
|
22660
22664
|
type: t,
|
|
22661
|
-
meta:
|
|
22665
|
+
meta: u
|
|
22662
22666
|
})) ?? [], f = cc(p, !0), l = p.filter(
|
|
22663
22667
|
({ type: e }) => e !== "CHAIN"
|
|
22664
22668
|
), n = $t.pipe(
|