Skip to content

Commit

Permalink
updated: one year unlock time for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Salmandabbakuti committed Nov 8, 2023
1 parent d9261b6 commit 9c49f2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
- name: "Run tests"
run: npm run test
- name: "Deploy contracts"
run: npm run deploy
run: npx hardhat run scripts/deploy.ts
3 changes: 1 addition & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ task(

task("deploy", "Deploys Contract", async (_, hre) => {
const currentTimestampInSeconds = Math.round(Date.now() / 1000);
console.log("current timestamp", currentTimestampInSeconds);
const unlockTime = currentTimestampInSeconds + 300;
const unlockTime = currentTimestampInSeconds + 365 * 24 * 60 * 60;
const lockedAmount = hre.ethers.parseEther("0.001");

const lockInstance = await hre.ethers.deployContract("Lock", [unlockTime], {
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ethers } from "hardhat";

async function main() {
const currentTimestampInSeconds = Math.round(Date.now() / 1000);
const unlockTime = currentTimestampInSeconds + 300;
const unlockTime = currentTimestampInSeconds + 365 * 24 * 60 * 60;
const lockedAmount = ethers.parseEther("0.001");

const lockInstance = await ethers.deployContract("Lock", [unlockTime], {
Expand Down

0 comments on commit 9c49f2c

Please sign in to comment.