From 7326d7e5029f70f57f19eb0cc9fd772cdec19ca6 Mon Sep 17 00:00:00 2001 From: yoyoj1023 <32451691+yoyoj1023@users.noreply.github.com> Date: Thu, 19 Jun 2025 14:20:58 +0800 Subject: [PATCH] fix: the parameter of deploy in Counter.ts fix: the parameter of deploy in Counter.ts --- packages/hardhat/test/Counter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat/test/Counter.ts b/packages/hardhat/test/Counter.ts index c86ead3..526e8ff 100644 --- a/packages/hardhat/test/Counter.ts +++ b/packages/hardhat/test/Counter.ts @@ -7,7 +7,7 @@ describe("Counter", function () { before(async () => { const counterFactory = await ethers.getContractFactory("Counter"); - counter = (await counterFactory.deploy()) as Counter; + counter = (await counterFactory.deploy(10)) as Counter; await counter.waitForDeployment(); });