Skip to content

Commit

Permalink
fix prettier checks
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Dec 6, 2024
1 parent 21db68c commit 57e0a85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"**/*.{test,spec}.ts": [
"node scripts/check-test-files.js"
],
"src/**/*.ts": [
"{src,frontend/src}/**/*.ts?(x)": [
"prettier --write",
"eslint --fix",
"prettier --check",
Expand Down
24 changes: 11 additions & 13 deletions src/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,17 @@ export async function getCompactDetails({
lockId: string;
chainId: string;
}): Promise<AllocatorResponse & AccountDeltasResponse & AccountResponse> {
const { finalizationTimestamp, thresholdTimestamp } = calculateQueryTimestamps(chainId);

return graphqlClient.request(
GET_COMPACT_DETAILS,
{
allocator: allocator.toLowerCase(),
sponsor: sponsor.toLowerCase(),
lockId,
chainId,
finalizationTimestamp: finalizationTimestamp.toString(),
thresholdTimestamp: thresholdTimestamp.toString(),
}
);
const { finalizationTimestamp, thresholdTimestamp } =
calculateQueryTimestamps(chainId);

return graphqlClient.request(GET_COMPACT_DETAILS, {
allocator: allocator.toLowerCase(),
sponsor: sponsor.toLowerCase(),
lockId,
chainId,
finalizationTimestamp: finalizationTimestamp.toString(),
thresholdTimestamp: thresholdTimestamp.toString(),
});
}

export async function getAllResourceLocks(
Expand Down

0 comments on commit 57e0a85

Please sign in to comment.