A minimal Vite + React app using forWagmi directly (without the React hook)
to demonstrate the "build a decoder once, decode many" pattern. The decoder
is created at module scope so it is shared across the whole app.
pnpm install
pnpm run devOpen the URL printed by Vite. Click Trigger failure to see the parsed error.
src/main.tsx— bootstraps React and the Wagmi provider.src/App.tsx— uses the module-scopeddecoderand a try/catch.src/wagmi.ts— Wagmi config.src/decoder.ts— single sharedErrorDecoderinstance.