Skip to content

Commit

Permalink
fix: error query with non-evm chainId when search (#92)
Browse files Browse the repository at this point in the history
## Description
Add wrong query chainId when search 
Issue: #91

## Solution
Return only evm chain with bigint type not string
  • Loading branch information
jmrossy authored Jul 2, 2024
2 parents ad05a0b + 9942c56 commit 72cd5e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/search/SearchFilterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ function ChainMultiSelector({
);
const mainnets = coreEvmChains.filter((c) => !c.isTestnet);
const testnets = coreEvmChains.filter((c) => !!c.isTestnet);
return { chains, mainnets, testnets };
// Return only evnChains because of graphql only accept query non-evm chains (with bigint type not string)
return { chains: coreEvmChains, mainnets, testnets };
}, [multiProvider]);

// Need local state as buffer before user hits apply
Expand Down Expand Up @@ -316,4 +317,4 @@ function DatetimeSelector({
modalClasses="w-60 -right-8"
/>
);
}
}

0 comments on commit 72cd5e2

Please sign in to comment.