@msafe/sui-app-store 0.0.21 → 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 +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2881,7 +2881,17 @@ var PlainTransactionHelper = class {
|
|
|
2881
2881
|
};
|
|
2882
2882
|
}
|
|
2883
2883
|
async build(input) {
|
|
2884
|
-
|
|
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;
|
|
2885
2895
|
}
|
|
2886
2896
|
};
|
|
2887
2897
|
|