@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/dist/index.cjs +0 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/MSafeAccount.ts +2 -8
package/package.json
CHANGED
package/src/core/MSafeAccount.ts
CHANGED
|
@@ -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 });
|