@msafe/sui-app-store 0.0.18 → 0.0.20
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/index.global.js +9 -9
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -393,6 +393,7 @@ var ResultRef = class _ResultRef {
|
|
|
393
393
|
};
|
|
394
394
|
|
|
395
395
|
// src/apps/mpay/contract/InspectViewer.ts
|
|
396
|
+
import { Buffer as Buffer2 } from "buffer";
|
|
396
397
|
import { normalizeSuiAddress } from "@mysten/sui.js/utils";
|
|
397
398
|
|
|
398
399
|
// src/apps/mpay/error/InvalidRpcResultError.ts
|
|
@@ -427,7 +428,7 @@ var InspectViewer = class {
|
|
|
427
428
|
}
|
|
428
429
|
});
|
|
429
430
|
}
|
|
430
|
-
return normalizeSuiAddress(
|
|
431
|
+
return normalizeSuiAddress(Buffer2.from(value).toString("hex"));
|
|
431
432
|
}
|
|
432
433
|
getU64(callIndex = 0, returnIndex = 0) {
|
|
433
434
|
const [value, type] = this.getValue(callIndex, returnIndex);
|
|
@@ -439,7 +440,7 @@ var InspectViewer = class {
|
|
|
439
440
|
}
|
|
440
441
|
});
|
|
441
442
|
}
|
|
442
|
-
return
|
|
443
|
+
return Buffer2.from(value).readBigInt64LE();
|
|
443
444
|
}
|
|
444
445
|
};
|
|
445
446
|
|
|
@@ -502,9 +503,9 @@ function isSameTarget(target1, target2) {
|
|
|
502
503
|
var GAS_OBJECT_SPEC = "txn.gas";
|
|
503
504
|
|
|
504
505
|
// src/apps/mpay/utils/random.ts
|
|
505
|
-
import {
|
|
506
|
+
import { v4 as uuidv4 } from "uuid";
|
|
506
507
|
function generateGroupId() {
|
|
507
|
-
return
|
|
508
|
+
return uuidv4();
|
|
508
509
|
}
|
|
509
510
|
|
|
510
511
|
// src/apps/mpay/builder/CreateStreamHelper.ts
|