@msafe/sui3-sdk 0.0.51-pre-4812556.0 → 0.0.51
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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/simulate/simulator.ts +3 -1
package/dist/index.cjs
CHANGED
|
@@ -42971,7 +42971,9 @@ var Simulator = class {
|
|
|
42971
42971
|
const { suiClient } = this.globals;
|
|
42972
42972
|
const gasPrice = await this.getGasPrice(options);
|
|
42973
42973
|
tx.setGasPrice(gasPrice);
|
|
42974
|
-
const inspectResult = await suiClient.
|
|
42974
|
+
const inspectResult = await suiClient.dryRunTransactionBlock({
|
|
42975
|
+
transactionBlock: await tx.build({ client: suiClient })
|
|
42976
|
+
});
|
|
42975
42977
|
const { gasUsed } = inspectResult.effects;
|
|
42976
42978
|
const gasBudget = this.toGasBudget(gasUsed, gasPrice);
|
|
42977
42979
|
const success = inspectResult.effects.status.status === "success";
|