Skip to content

Commit

Permalink
fix: useScaffoldEventHistory caching (#916)
Browse files Browse the repository at this point in the history
Co-authored-by: Shiv Bhonde <shivbhonde04@gmail.com>
  • Loading branch information
rin-st and technophile-04 committed Aug 26, 2024
1 parent a132cce commit 5d0bf4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nextjs/hooks/scaffold-eth/useScaffoldEventHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Abi, AbiEvent, ExtractAbiEventNames } from "abitype";
import { BlockNumber, GetLogsParameters } from "viem";
import { Config, UsePublicClientReturnType, useBlockNumber, usePublicClient } from "wagmi";
import { useDeployedContractInfo } from "~~/hooks/scaffold-eth";
import { replacer } from "~~/utils/scaffold-eth/common";
import {
ContractAbi,
ContractName,
Expand Down Expand Up @@ -105,6 +106,7 @@ export const useScaffoldEventHistory = <
eventName,
fromBlock: fromBlock.toString(),
chainId: targetNetwork.id,
filters: JSON.stringify(filters, replacer),
},
],
queryFn: async ({ pageParam }) => {
Expand Down

0 comments on commit 5d0bf4c

Please sign in to comment.