@msafe/sui3-sdk 1.0.12 → 1.0.14
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.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/simulate/simulator.ts +10 -1
- package/src/types/msafe.ts +9 -1
package/dist/index.d.cts
CHANGED
|
@@ -187,6 +187,12 @@ interface GasObjectReference {
|
|
|
187
187
|
}
|
|
188
188
|
type SimulateDryRunResponse = SuiClientTypes.SimulateTransactionResult<{
|
|
189
189
|
effects: true;
|
|
190
|
+
balanceChanges: true;
|
|
191
|
+
events: true;
|
|
192
|
+
objectTypes: true;
|
|
193
|
+
transaction: true;
|
|
194
|
+
bcs: true;
|
|
195
|
+
commandResults: true;
|
|
190
196
|
}>;
|
|
191
197
|
interface PendingTx {
|
|
192
198
|
application: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -187,6 +187,12 @@ interface GasObjectReference {
|
|
|
187
187
|
}
|
|
188
188
|
type SimulateDryRunResponse = SuiClientTypes.SimulateTransactionResult<{
|
|
189
189
|
effects: true;
|
|
190
|
+
balanceChanges: true;
|
|
191
|
+
events: true;
|
|
192
|
+
objectTypes: true;
|
|
193
|
+
transaction: true;
|
|
194
|
+
bcs: true;
|
|
195
|
+
commandResults: true;
|
|
190
196
|
}>;
|
|
191
197
|
interface PendingTx {
|
|
192
198
|
application: string;
|
package/dist/index.js
CHANGED
|
@@ -183,6 +183,7 @@ var Simulator = class {
|
|
|
183
183
|
const { suiClient } = this.globals;
|
|
184
184
|
const gasPrice = await this.getGasPrice();
|
|
185
185
|
tx.setGasPrice(gasPrice);
|
|
186
|
+
tx.setSender(input.sender);
|
|
186
187
|
let built;
|
|
187
188
|
try {
|
|
188
189
|
built = await tx.build({
|
|
@@ -206,7 +207,8 @@ var Simulator = class {
|
|
|
206
207
|
events: true,
|
|
207
208
|
objectTypes: true,
|
|
208
209
|
transaction: true,
|
|
209
|
-
bcs: true
|
|
210
|
+
bcs: true,
|
|
211
|
+
commandResults: true
|
|
210
212
|
}
|
|
211
213
|
});
|
|
212
214
|
} catch (e) {
|