Skip to content

Commit

Permalink
feat: update graphql query
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagalidoom committed Sep 30, 2024
1 parent e7765bf commit a25c1a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hooks/use-deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ type DepositDataJson = {
};

const GET_DEPOSIT_EVENTS = gql`
query MyQuery($pubkeys: [String!], $chainId: Int!) {
query MyQuery($pubkeys: [String!]) {
SBCDepositContract_DepositEvent(
where: {
pubkey: {
_in: $pubkeys
},
chainId: {_eq: $chainId}
}
) {
id
Expand Down Expand Up @@ -104,7 +103,6 @@ function useDeposit(contractConfig: ContractNetwork | undefined, address: `0x${s
query: GET_DEPOSIT_EVENTS,
variables: {
pubkeys: pksFromFile,
chainId: chainId,
},
});
const existingDeposits = data.SBCDepositContract_DepositEvent.map((d: { pubkey: string }) => d.pubkey);
Expand Down

0 comments on commit a25c1a3

Please sign in to comment.