hardhat-template/scripts/deploy.ts
2024-12-21 09:17:17 +00:00

18 lines
408 B
TypeScript

import { ethers } from 'hardhat';
import { Lock__factory } from '../typechain-types';
async function deploy() {
const [owner] = await ethers.getSigners();
const Lock = await new Lock__factory(owner).deploy(Math.floor(Date.now() + 600));
await Lock.waitForDeployment();
console.log(Lock.target);
console.log(await Lock.owner());
console.log(await Lock.unlockTime());
}
deploy();