Skip to content

Commit

Permalink
import verify etherscan task name
Browse files Browse the repository at this point in the history
  • Loading branch information
passabilities committed Oct 13, 2023
1 parent ec56e5c commit 8a32e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin-hardhat/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit 8a32e8a

Please sign in to comment.