Skip to content

Commit

Permalink
fix hardhat chain example
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskares committed Aug 3, 2024
1 parent d23286a commit 50b737e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
```

0 comments on commit 50b737e

Please sign in to comment.