Skip to content

Commit

Permalink
refactor(@nftx/core): update to latest types
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmellis committed Jul 12, 2024
1 parent 7671f1c commit b1d93d6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type Response = {
}>;
};
};
type Params = { userAddress: Address; lastId: string };

export const makeFetchNonStandards =
({ querySubgraph }: { querySubgraph: QuerySubgraph }) =>
Expand Down Expand Up @@ -44,7 +43,7 @@ export const makeFetchNonStandards =
return { holdings: [], cursor: createCursor('nonstandard', undefined) };
}

const query = gql<Response, Params>`
const query = gql`
{
account(id: $userAddress) {
id
Expand All @@ -61,7 +60,7 @@ export const makeFetchNonStandards =
}
`;

const data = await querySubgraph({
const data = await querySubgraph<Response>({
url,
query,
variables: { lastId, userAddress },
Expand Down

0 comments on commit b1d93d6

Please sign in to comment.