Skip to content

Commit

Permalink
Updates readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
robotoer committed Jul 30, 2024
1 parent ebb5b5b commit 0bfc3dc
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 @@ -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(
Expand Down

0 comments on commit 0bfc3dc

Please sign in to comment.