Skip to content

Commit 05af361

Browse files
committed
update param name
1 parent b2fc111 commit 05af361

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/lib/mina/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ async function fetchActions(
740740
actionStates,
741741
tokenId,
742742
/* _filterOptions= */ undefined,
743-
/* retryWithoutTxInfo= */ true
743+
/* _excludeTransactionInfo= */ true
744744
),
745745
graphqlEndpoint,
746746
networkConfig.archiveFallbackEndpoints

src/lib/mina/graphql.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ const getActionsQuery = (
322322
actionStates: ActionStatesStringified,
323323
tokenId: string,
324324
_filterOptions?: EventActionFilterOptions,
325-
retryWithoutTxInfo: boolean = false
325+
// As of 2025-01-07 minascan is running a version of the node API which supports `sequenceNumber` and `zkappAccountUpdateIds` fields
326+
// In case a user tries to access an older API version, we support making the query without these fields, but can't guarantee action ordering
327+
// Transaction sequence info is required to be 100% certain of action order
328+
_excludeTransactionInfo: boolean = false
326329
) => {
327330
const { fromActionState, endActionState } = actionStates ?? {};
328331
let input = `address: "${publicKey}", tokenId: "${tokenId}"`;
@@ -345,7 +348,7 @@ const getActionsQuery = (
345348
accountUpdateId
346349
data
347350
${
348-
retryWithoutTxInfo
351+
_excludeTransactionInfo
349352
? ''
350353
: 'transactionInfo { sequenceNumber zkappAccountUpdateIds }'
351354
}

0 commit comments

Comments
 (0)