From 50b737e5885422c74cda51f632df2351488ed741 Mon Sep 17 00:00:00 2001 From: Johannes Kares Date: Sat, 3 Aug 2024 20:41:38 +0200 Subject: [PATCH] fix hardhat chain example --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f95aea..ba1630d 100644 --- a/README.md +++ b/README.md @@ -81,11 +81,13 @@ To test with a local Hardhat node: 2. Connect the Mock Wallet to your Hardhat Node: ```ts + import { hardhat } from "viem/chains"; + await installMockWallet({ page, account: privateKeyToAccount( "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", ), - transport: http("http://127.0.0.1:8545"), + defaultChain: hardhat, }); ```