@mysten/sui 2.20.1 → 2.20.3

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.
@@ -143,8 +143,16 @@ fragment TRANSACTION_FIELDS on Transaction {
143
143
  }
144
144
  }
145
145
 
146
- query resolveTransaction($transaction: JSON!, $doGasSelection: Boolean = true) {
147
- simulateTransaction(transaction: $transaction, doGasSelection: $doGasSelection) {
146
+ query resolveTransaction(
147
+ $transaction: JSON!
148
+ $doGasSelection: Boolean = true
149
+ $checksEnabled: Boolean = true
150
+ ) {
151
+ simulateTransaction(
152
+ transaction: $transaction
153
+ doGasSelection: $doGasSelection
154
+ checksEnabled: $checksEnabled
155
+ ) {
148
156
  effects {
149
157
  transaction {
150
158
  transactionBcs
package/src/grpc/core.ts CHANGED
@@ -211,6 +211,7 @@ export class GrpcCoreClient extends CoreClient {
211
211
  owner: options.owner,
212
212
  objectType: `0x2::coin::Coin<${(await this.mvr.resolveType({ type: coinType })).type}>`,
213
213
  pageToken: options.cursor ? fromBase64(options.cursor) : undefined,
214
+ pageSize: options.limit,
214
215
  readMask: {
215
216
  paths,
216
217
  },
@@ -756,6 +757,10 @@ export class GrpcCoreClient extends CoreClient {
756
757
  doGasSelection:
757
758
  !options.onlyTransactionKind &&
758
759
  (snapshot.gasData.budget == null || snapshot.gasData.payment == null),
760
+ // Kind-only txns are never executed directly and do not have sender, so skip validation checks.
761
+ checks: options.onlyTransactionKind
762
+ ? SimulateTransactionRequest_TransactionChecks.DISABLED
763
+ : SimulateTransactionRequest_TransactionChecks.ENABLED,
759
764
  readMask: {
760
765
  paths: [
761
766
  'transaction.transaction.sender',
package/src/version.ts CHANGED
@@ -3,4 +3,4 @@
3
3
 
4
4
  // This file is generated by genversion.mjs. Do not edit it directly.
5
5
 
6
- export const PACKAGE_VERSION = '2.20.1';
6
+ export const PACKAGE_VERSION = '2.20.3';