Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix(warp): always do batch read if sortKey is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Jan 5, 2024
1 parent d4deaa5 commit e5bdcb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async function readThroughToContractState(
.setEvaluationOptions(evaluationOptions);

// only use batch read if no block height provided (it does not currently support block heights)
const doBatchRead = providedBlockHeight === undefined;
const doBatchRead = providedSortKey || providedBlockHeight === undefined;
logger?.debug('Evaluating contract state...', {
contractTxId,
cacheKey: cacheKey.toString(),
Expand Down

0 comments on commit e5bdcb6

Please sign in to comment.