From aa05aefef9e146350e3d18307cd3e2ee4548d0ee Mon Sep 17 00:00:00 2001 From: Yohan9206 Date: Thu, 31 Jul 2025 23:20:40 +0300 Subject: [PATCH] fixing the deploy.js --- hardhat/scripts/deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardhat/scripts/deploy.js b/hardhat/scripts/deploy.js index 8df050e1f7..e0c4a28f5f 100644 --- a/hardhat/scripts/deploy.js +++ b/hardhat/scripts/deploy.js @@ -6,9 +6,9 @@ async function main() { console.log("Deploying contracts with the account:", deployer.address); const unlockTime = Math.floor(Date.now() / 1000) + 3600; // 1 hour from now - + const Lock = await ethers.getContractFactory("Lock", deployer); - const lock = await Lock.deploy(); + const lock = await Lock.deploy(unlockTime); await lock.deployed();