Skip to content

Commit

Permalink
fix: fix type error
Browse files Browse the repository at this point in the history
docs: improve parameter wording
  • Loading branch information
PaulRBerg committed Dec 27, 2023
1 parent 56f5bde commit 0611674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const UNLOCK_IN_X_DAYS = NOW_IN_SECONDS + DAY_IN_SECONDS * 1; // 1 DAY
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;
const lockedAmount = hre.ethers.parseEther("0.01");
const lockedAmount = hre.ethers.parseEther("0.01").toString();

const lock = await deploy("Lock", {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions tasks/lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ task("task:withdraw", "Calls the withdraw function of Lock Contract")
});

task("task:deployLock", "Deploys Lock Contract")
.addParam("unlock", "When to unlock funds in seconds (i.e currentTime + --unlock seconds)")
.addParam("value", "How much ether you intend locking (in ether not wei i.e 0.1)")
.addParam("unlock", "When to unlock funds in seconds (number of seconds into the futrue)")
.addParam("value", "How much ether you intend locking (in ether not wei, e.g., 0.1)")
.setAction(async function (taskArguments: TaskArguments, { ethers }) {
const NOW_IN_SECONDS = Math.round(Date.now() / 1000);

Expand Down

0 comments on commit 0611674

Please sign in to comment.