Fix Sandbox staking pending events
This commit is contained in:
@@ -75,7 +75,7 @@ const StakeTableWithAction = () => {
|
||||
isError: isEpochError,
|
||||
} = useQuery({
|
||||
queryKey: ["epochRewards"],
|
||||
queryFn: fetchEpochRewards,
|
||||
queryFn: () => fetchEpochRewards(environment),
|
||||
staleTime: 10 * 60 * 1000, // 10 minutes
|
||||
refetchOnWindowFocus: false, // Prevents unnecessary refetching
|
||||
refetchOnReconnect: false,
|
||||
|
||||
@@ -43,7 +43,7 @@ export const useNymClient = () => {
|
||||
const queryClient = new contracts.Mixnet.MixnetQueryClient(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
cosmWasmClient as any,
|
||||
NYM_MIXNET_CONTRACT
|
||||
mixnetContractAddress
|
||||
);
|
||||
|
||||
setNymClient(client);
|
||||
|
||||
Reference in New Issue
Block a user