Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Nov 8, 2023
1 parent 1a26afa commit 9c6801b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/query/readContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export function readContractQueryOptions<
options: ReadContractOptions<abi, functionName, args, config> = {} as any,
) {
return {
// TODO: Support `signal` once Viem actions allow passthrough
// https://tkdodo.eu/blog/why-you-want-react-query#bonus-cancellation
async queryFn({ queryKey }) {
const abi = options.abi as Abi
if (!abi) throw new Error('abi is required')
Expand Down

0 comments on commit 9c6801b

Please sign in to comment.