@msafe/sui3-sdk 1.0.19 → 1.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msafe/sui3-sdk",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "SDK for MSafe SUI V3",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -340,15 +340,9 @@ export class MSafeAccount {
340
340
  throw new Error('Already rejected');
341
341
  }
342
342
 
343
+ // API independently rebuilds via buildRejectTxb() + build() and compares digest.
344
+ // Do not set gas / prepareGasFunding here — that changes payment and breaks the check.
343
345
  const rejectTxb = toSuiTransaction(buildRejectTxb(this.address));
344
- rejectTxb.setGasPrice(input.gasPrice);
345
- await prepareGasFunding({
346
- tx: rejectTxb,
347
- suiClient: this.suiClient,
348
- owner: this.address,
349
- gasPrice: input.gasPrice,
350
- gasBudget: input.gasBudget,
351
- });
352
346
  const digest = await rejectTxb.getDigest({ client: this.suiClient });
353
347
  const payload = await rejectTxb.build({ client: this.suiClient });
354
348
  const signature = await this.wallet.signTransactionBlock({ transactionBlock: payload });