fix: lint fixes

This commit is contained in:
asiaziola
2023-01-02 11:37:50 +01:00
parent 8394a4d507
commit c50df6a82f
2 changed files with 12 additions and 10 deletions

View File

@@ -468,14 +468,14 @@ export class HandlerBasedContract<State> implements Contract<State> {
interactions
? Promise.resolve(interactions)
: await interactionsLoader.load(
contractTxId,
cachedState?.sortKey,
// (1) we want to eagerly load dependant contract interactions and put them
// in the interactions' loader cache
// see: https://github.com/warp-contracts/warp/issues/198
this.getToSortKey(upToSortKey),
this._evaluationOptions
)
contractTxId,
cachedState?.sortKey,
// (1) we want to eagerly load dependant contract interactions and put them
// in the interactions' loader cache
// see: https://github.com/warp-contracts/warp/issues/198
this.getToSortKey(upToSortKey),
this._evaluationOptions
)
]);
// (2) ...but we still need to return only interactions up to original "upToSortKey"
if (cachedState?.sortKey) {