@ecency/wallets 1.4.16 → 1.4.18
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/node/index.mjs
CHANGED
|
@@ -2264,16 +2264,19 @@ function getPointsAssetTransactionsQueryOptions(username, type) {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
);
|
|
2266
2266
|
const data = await response.json();
|
|
2267
|
-
return data.map(({ created, type: type2, amount, id }) => ({
|
|
2267
|
+
return data.map(({ created, type: type2, amount, id, sender, receiver, memo }) => ({
|
|
2268
2268
|
created: new Date(created),
|
|
2269
2269
|
type: type2,
|
|
2270
2270
|
results: [
|
|
2271
2271
|
{
|
|
2272
|
-
amount:
|
|
2272
|
+
amount: parseFloat(amount),
|
|
2273
2273
|
asset: "POINTS"
|
|
2274
2274
|
}
|
|
2275
2275
|
],
|
|
2276
|
-
id
|
|
2276
|
+
id,
|
|
2277
|
+
from: sender ?? void 0,
|
|
2278
|
+
to: receiver ?? void 0,
|
|
2279
|
+
memo: memo ?? void 0
|
|
2277
2280
|
}));
|
|
2278
2281
|
}
|
|
2279
2282
|
});
|