From 05358d4ba8fdff0dbc26b3f2c8f0e62395d131d7 Mon Sep 17 00:00:00 2001 From: PacificYield <173040337+PacificYield@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:24:25 +0100 Subject: [PATCH] chore: remove tasks/mint.ts --- tasks/mint.ts | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 tasks/mint.ts diff --git a/tasks/mint.ts b/tasks/mint.ts deleted file mode 100644 index 862376c..0000000 --- a/tasks/mint.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { task } from 'hardhat/config'; -import type { TaskArguments } from 'hardhat/types'; - -task('task:deployERC20').setAction(async function (taskArguments: TaskArguments, { ethers }) { - const signers = await ethers.getSigners(); - const erc20Factory = await ethers.getContractFactory('EncryptedERC20'); - const encryptedERC20 = await erc20Factory.connect(signers[0]).deploy('Naraggara', 'NARA'); - await encryptedERC20.waitForDeployment(); - console.log('EncryptedERC20 deployed to: ', await encryptedERC20.getAddress()); -}); - -task('task:mint') - .addParam('mint', 'Tokens to mint') - .setAction(async function (taskArguments: TaskArguments, hre) { - const { ethers, deployments } = hre; - const EncryptedERC20 = await deployments.get('EncryptedERC20'); - - const signers = await ethers.getSigners(); - - const encryptedERC20 = (await ethers.getContractAt('EncryptedERC20', EncryptedERC20.address)) as any; - - await encryptedERC20.connect(signers[0]).mint(+taskArguments.mint); - - console.log('Mint done: ', taskArguments.mint); - });