@typus/typus-perp-sdk 1.0.64 → 1.0.65
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/src/fetch.js +1 -3
- package/package.json +1 -1
package/dist/src/fetch.js
CHANGED
|
@@ -379,9 +379,7 @@ function getUserStake(config, user) {
|
|
|
379
379
|
reader = new bcs_1.BcsReader(new Uint8Array(returnValues));
|
|
380
380
|
lpShares_1 = [];
|
|
381
381
|
reader.readVec(function (reader) {
|
|
382
|
-
var
|
|
383
|
-
var bytes = reader.readBytes(length);
|
|
384
|
-
var lpShare = structs_4.LpUserShare.fromBcs(Uint8Array.from(Array.from(bytes)));
|
|
382
|
+
var lpShare = structs_4.LpUserShare.fromFields(structs_4.LpUserShare.bcs.read(reader));
|
|
385
383
|
var incentives = [];
|
|
386
384
|
reader.readVec(function (reader) {
|
|
387
385
|
var incentive = reader.read64();
|