Skip to content

Commit

Permalink
don't extend
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Jan 11, 2025
1 parent 438abb3 commit 5fbae90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/react/packages/client/src/mud/StashSyncProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { syncToStash, SyncToStashResult } from "@latticexyz/store-sync/internal"
import { createContext, ReactNode, useContext, useEffect } from "react";
import { useClient } from "wagmi";
import { chainId } from "../common";
import { Address, publicActions, PublicClient } from "viem";
import { Address } from "viem";
import { useQuery } from "@tanstack/react-query";

/** @internal */
Expand Down Expand Up @@ -35,7 +35,7 @@ export function StashSyncProvider({ address, startBlock, stash, children }: Prop
// TODO: clear stash
syncToStash({
stash,
publicClient: client.extend(publicActions) as PublicClient,
publicClient: client,
address,
startBlock,
}),
Expand Down

0 comments on commit 5fbae90

Please sign in to comment.