@mysten/sui 2.9.0 → 2.9.1
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/CHANGELOG.md +6 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/client/core-resolver.mjs +5 -0
- package/dist/client/core-resolver.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts.map +1 -1
- package/dist/transactions/data/internal.d.mts +109 -109
- package/dist/transactions/data/internal.d.mts.map +1 -1
- package/dist/transactions/data/v1.d.mts +220 -220
- package/dist/transactions/data/v1.d.mts.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/dist/zklogin/bcs.d.mts.map +1 -1
- package/package.json +3 -3
- package/src/client/core-resolver.ts +15 -0
- package/src/version.ts +1 -1
|
@@ -194,6 +194,10 @@ async function setExpiration(
|
|
|
194
194
|
client: ClientWithCoreApi,
|
|
195
195
|
existingSystemState: SystemStateData | null,
|
|
196
196
|
) {
|
|
197
|
+
if (transactionData.expiration || hasVersionedInputs(transactionData)) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
|
|
197
201
|
const [systemState, { chainIdentifier }] = await Promise.all([
|
|
198
202
|
existingSystemState ?? client.core.getCurrentSystemState().then((r) => r.systemState),
|
|
199
203
|
client.core.getChainIdentifier(),
|
|
@@ -213,6 +217,17 @@ async function setExpiration(
|
|
|
213
217
|
};
|
|
214
218
|
}
|
|
215
219
|
|
|
220
|
+
function hasVersionedInputs(transactionData: TransactionDataBuilder): boolean {
|
|
221
|
+
if (transactionData.gasData.payment?.length) {
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
return transactionData.inputs.some(
|
|
226
|
+
(input) =>
|
|
227
|
+
input.Object?.ImmOrOwnedObject || (input.UnresolvedObject && input.UnresolvedObject.version),
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
216
231
|
async function resolveObjectReferences(
|
|
217
232
|
transactionData: TransactionDataBuilder,
|
|
218
233
|
client: ClientWithCoreApi,
|
package/src/version.ts
CHANGED