import { HardhatRuntimeEnvironment } from "hardhat/types"
import { DeployFunction } from "hardhat-deploy/types"

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
  const { deployments, getNamedAccounts } = hre
  const { deploy } = deployments
  const { deployer } = await getNamedAccounts()

  await deploy("ERC4907", {
    from: deployer,
    log: true,
    skipIfAlreadyDeployed: true,
  })
}

export default func
func.tags = ["ERC4907"]