Files
fhevm-solidity/deploy/deploy.ts
Joseph-André Turk 6faf13648d Fixed tasks and readme
2024-01-18 15:17:44 +01:00

19 lines
604 B
TypeScript

import { DeployFunction } from 'hardhat-deploy/types';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;
const deployed = await deploy('EncryptedERC20', {
from: deployer,
args: ['Naraggara', 'NARA'],
log: true,
});
console.log(`EncryptedERC20 contract: `, deployed.address);
};
export default func;
func.id = 'deploy_encryptedERC20'; // id required to prevent reexecution
func.tags = ['EncryptedERC20'];