@msafe/sui-app-store 0.0.20 → 0.0.22
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 +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
package/dist/index.mjs
CHANGED
|
@@ -503,9 +503,8 @@ function isSameTarget(target1, target2) {
|
|
|
503
503
|
var GAS_OBJECT_SPEC = "txn.gas";
|
|
504
504
|
|
|
505
505
|
// src/apps/mpay/utils/random.ts
|
|
506
|
-
import { v4 as uuidv4 } from "uuid";
|
|
507
506
|
function generateGroupId() {
|
|
508
|
-
return
|
|
507
|
+
return crypto.randomUUID();
|
|
509
508
|
}
|
|
510
509
|
|
|
511
510
|
// src/apps/mpay/builder/CreateStreamHelper.ts
|
|
@@ -2852,7 +2851,17 @@ var PlainTransactionHelper = class {
|
|
|
2852
2851
|
};
|
|
2853
2852
|
}
|
|
2854
2853
|
async build(input) {
|
|
2855
|
-
|
|
2854
|
+
const { suiClient, account } = input;
|
|
2855
|
+
const txb = TransactionBlock6.from(fromHEX(input.intentionData.content));
|
|
2856
|
+
const inspectResult = await suiClient.devInspectTransactionBlock({
|
|
2857
|
+
transactionBlock: txb,
|
|
2858
|
+
sender: account.address
|
|
2859
|
+
});
|
|
2860
|
+
const success = inspectResult.effects.status.status === "success";
|
|
2861
|
+
if (!success) {
|
|
2862
|
+
throw new Error(inspectResult.effects.status.error);
|
|
2863
|
+
}
|
|
2864
|
+
return txb;
|
|
2856
2865
|
}
|
|
2857
2866
|
};
|
|
2858
2867
|
|