diff --git a/examples/minimal/packages/client-react-external-wallet/package.json b/examples/minimal/packages/client-react-external-wallet/package.json
index e880f813c5..3b63168a7a 100644
--- a/examples/minimal/packages/client-react-external-wallet/package.json
+++ b/examples/minimal/packages/client-react-external-wallet/package.json
@@ -14,12 +14,14 @@
"@latticexyz/common": "link:../../../../packages/common",
"@latticexyz/dev-tools": "link:../../../../packages/dev-tools",
"@latticexyz/store-sync": "link:../../../../packages/store-sync",
+ "@tanstack/react-query": "5.22.2",
"contracts": "workspace:*",
+ "p-retry": "^5.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "7.5.5",
- "viem": "1.14.0",
- "wagmi": "1.4.13"
+ "viem": "2.7.12",
+ "wagmi": "2.5.7"
},
"devDependencies": {
"@types/react": "18.2.22",
diff --git a/examples/minimal/packages/client-react-external-wallet/src/App.tsx b/examples/minimal/packages/client-react-external-wallet/src/App.tsx
index 9bdb75504d..8d20348354 100644
--- a/examples/minimal/packages/client-react-external-wallet/src/App.tsx
+++ b/examples/minimal/packages/client-react-external-wallet/src/App.tsx
@@ -1,18 +1,17 @@
-import { useMUDRead } from "./mud/read";
-import { useMUDWrite } from "./mud/write";
+import { useMUD } from "./mud/customWalletClient";
+import { increment } from "./mud/systemCalls";
export const App = () => {
- const { useStore, tables } = useMUDRead();
- const mudWrite = useMUDWrite();
+ const { network, walletClient } = useMUD();
- const counter = useStore((state) => state.getValue(tables.CounterTable, {}));
+ const counter = network.useStore((state) => state.getValue(network.tables.CounterTable, {}));
return (
Counter: {counter?.value ?? "unset"}
- {mudWrite && (
-