Skip to content

Commit

Permalink
fix: add endpoint to query key
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpeach committed Dec 27, 2023
1 parent 0cc2f3d commit b3fbdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/services/contractService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export const useContractQueryMsgs = (contractAddress: ContractAddr) => {
const endpoint = useBaseApiRoute("contracts");

return useQuery(
[CELATONE_QUERY_KEYS.CONTRACT_QUERY_MSGS, contractAddress],
[CELATONE_QUERY_KEYS.CONTRACT_QUERY_MSGS, endpoint, contractAddress],
async () => getContractQueryMsgs(endpoint, contractAddress),
{ retry: false, cacheTime: 0, refetchOnWindowFocus: false }
);
Expand Down

0 comments on commit b3fbdba

Please sign in to comment.