Deploy_BasicERC20.ts 413 B

1234567891011121314
  1. import { DeployFunction } from "hardhat-deploy/types"
  2. import { HardhatRuntimeEnvironment } from "hardhat/types"
  3. const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
  4. const { deployer, owner } = await hre.getNamedAccounts()
  5. await hre.deployments.deploy("BasicERC20", {
  6. from: deployer,
  7. args: ["ProtoToken", "PT", owner],
  8. log: true,
  9. })
  10. }
  11. export default func
  12. func.tags = ["erc20"]