diff --git a/packages/plugin-hardhat/src/index.ts b/packages/plugin-hardhat/src/index.ts index 836593dcb..6f170b6df 100644 --- a/packages/plugin-hardhat/src/index.ts +++ b/packages/plugin-hardhat/src/index.ts @@ -2,6 +2,7 @@ import '@nomicfoundation/hardhat-ethers'; import './type-extensions'; +import { TASK_VERIFY_ETHERSCAN } from '@nomicfoundation/hardhat-verify/internal/task-names'; import { subtask, extendEnvironment, extendConfig } from 'hardhat/config'; import { TASK_COMPILE_SOLIDITY, TASK_COMPILE_SOLIDITY_COMPILE } from 'hardhat/builtin-tasks/task-names'; import { lazyObject } from 'hardhat/plugins'; @@ -193,7 +194,7 @@ extendConfig((config: HardhatConfig) => { }); if (tryRequire('@nomicfoundation/hardhat-verify')) { - subtask('verify:etherscan').setAction(async (args, hre, runSuper) => { + subtask(TASK_VERIFY_ETHERSCAN).setAction(async (args, hre, runSuper) => { const { verify } = await import('./verify-proxy'); return await verify(args, hre, runSuper); });