chore: lint, idiot

This commit is contained in:
ppe
2023-01-12 11:28:03 +01:00
parent 4ae5c10924
commit ddc5377d7d
3 changed files with 7 additions and 4 deletions

View File

@@ -170,7 +170,10 @@ export class HandlerBasedContract<State> implements Contract<State> {
return result;
}
async readStateFor(sortKey: string, interactions: GQLNodeInterface[]): Promise<SortKeyCacheResult<EvalStateResult<State>>> {
async readStateFor(
sortKey: string,
interactions: GQLNodeInterface[]
): Promise<SortKeyCacheResult<EvalStateResult<State>>> {
return this.readState(sortKey, undefined, interactions);
}
@@ -462,7 +465,7 @@ export class HandlerBasedContract<State> implements Contract<State> {
contractDefinition = await definitionLoader.load<State>(contractTxId, evolvedSrcTxId);
handler = await this.safeGetHandler(contractDefinition);
if (interactions?.length) {
sortedInteractions = this._sorter.sort(interactions.map(i => ({node: i, cursor: null})));
sortedInteractions = this._sorter.sort(interactions.map((i) => ({ node: i, cursor: null })));
}
}
} else {