diff --git a/.changeset/lucky-cows-fail.md b/.changeset/lucky-cows-fail.md index 46ed698bc3..98aa41d8b4 100644 --- a/.changeset/lucky-cows-fail.md +++ b/.changeset/lucky-cows-fail.md @@ -5,18 +5,19 @@ Added a `syncToStash` util to hydrate a `stash` client store from MUD contract state. This is currently exported from `@latticexyz/store-sync/internal` while Stash package is unstable/experimental. ```ts -import config from "mud.config"; import { createClient, http } from "viem"; import { anvil } from "viem/chains"; import { createStash } from "@latticexyz/stash/internal"; import { syncToStash } from "@latticexyz/store-sync/internal"; +import config from "../mud.config"; -const address = "0x..."; const client = createClient({ chain: anvil, transport: http(), }); +const address = "0x..."; + const stash = createStash(config); const sync = await syncToStash({ stash, client, address }); ```