diff --git a/README.md b/README.md index 5e49fc2..29763de 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,9 @@ import { deployMock } from "viem-mock-contract"; describe("MyContract", () => { it("should deploy a mock contract", async () => { - const mockContract = await deployMock(); + const reader = await hre.viem.getPublicClient(); + const [signer] = await hre.viem.getWalletClients(); + const mockContract = await deployMock(signer, reader); // Add expectations to mock await deployMock.setup(