@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.js
CHANGED
|
@@ -533,9 +533,8 @@ function isSameTarget(target1, target2) {
|
|
|
533
533
|
var GAS_OBJECT_SPEC = "txn.gas";
|
|
534
534
|
|
|
535
535
|
// src/apps/mpay/utils/random.ts
|
|
536
|
-
var import_uuid = require("uuid");
|
|
537
536
|
function generateGroupId() {
|
|
538
|
-
return
|
|
537
|
+
return crypto.randomUUID();
|
|
539
538
|
}
|
|
540
539
|
|
|
541
540
|
// src/apps/mpay/builder/CreateStreamHelper.ts
|
|
@@ -2882,7 +2881,17 @@ var PlainTransactionHelper = class {
|
|
|
2882
2881
|
};
|
|
2883
2882
|
}
|
|
2884
2883
|
async build(input) {
|
|
2885
|
-
|
|
2884
|
+
const { suiClient, account } = input;
|
|
2885
|
+
const txb = import_transactions6.TransactionBlock.from((0, import_utils15.fromHEX)(input.intentionData.content));
|
|
2886
|
+
const inspectResult = await suiClient.devInspectTransactionBlock({
|
|
2887
|
+
transactionBlock: txb,
|
|
2888
|
+
sender: account.address
|
|
2889
|
+
});
|
|
2890
|
+
const success = inspectResult.effects.status.status === "success";
|
|
2891
|
+
if (!success) {
|
|
2892
|
+
throw new Error(inspectResult.effects.status.error);
|
|
2893
|
+
}
|
|
2894
|
+
return txb;
|
|
2886
2895
|
}
|
|
2887
2896
|
};
|
|
2888
2897
|
|