fixing the deploy.js

This commit is contained in:
Yohan9206 2025-07-31 23:20:40 +03:00
parent 66aca938d3
commit aa05aefef9

View file

@ -8,7 +8,7 @@ async function main() {
const unlockTime = Math.floor(Date.now() / 1000) + 3600; // 1 hour from now const unlockTime = Math.floor(Date.now() / 1000) + 3600; // 1 hour from now
const Lock = await ethers.getContractFactory("Lock", deployer); const Lock = await ethers.getContractFactory("Lock", deployer);
const lock = await Lock.deploy(); const lock = await Lock.deploy(unlockTime);
await lock.deployed(); await lock.deployed();