From 66aca938d32574108be3c94a1bf3dc1369e20d28 Mon Sep 17 00:00:00 2001 From: Yohan9206 Date: Thu, 31 Jul 2025 23:15:57 +0300 Subject: [PATCH] working on deployin error --- hardhat/scripts/deploy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardhat/scripts/deploy.js b/hardhat/scripts/deploy.js index 2cc261afcb..8df050e1f7 100644 --- a/hardhat/scripts/deploy.js +++ b/hardhat/scripts/deploy.js @@ -5,6 +5,8 @@ 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();