Skip to content

Commit 67bb274

Browse files
committed
address PR comments
1 parent d9193d3 commit 67bb274

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

v-next/hardhat-ignition/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ const hardhatIgnitionPlugin: HardhatPlugin = {
129129
type: ArgumentType.STRING,
130130
description: "The id of the deployment to verify",
131131
})
132-
.addFlag({
133-
name: "blockscout",
134-
description: "Verify contracts on Blockscout",
135-
})
136132
.addFlag({
137133
name: "force",
138134
description: "Force verification",

v-next/hardhat-ignition/src/internal/tasks/verify.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@ import type { NewTaskActionFunction } from "hardhat/types/tasks";
44
import path from "node:path";
55

66
import { verifyContract } from "@nomicfoundation/hardhat-verify/verify";
7+
import { getVerificationInformation } from "@nomicfoundation/ignition-core";
78

89
interface TaskVerifyArguments {
910
deploymentId: string;
10-
blockscout: boolean;
1111
force: boolean;
1212
}
1313

1414
const verifyTask: NewTaskActionFunction<TaskVerifyArguments> = async (
15-
{ deploymentId, blockscout, force },
15+
{ deploymentId, force },
1616
hre: HardhatRuntimeEnvironment,
1717
) => {
18-
const { getVerificationInformation } = await import(
19-
"@nomicfoundation/ignition-core"
20-
);
21-
2218
const deploymentDir = path.join(
2319
hre.config.paths.ignition,
2420
"deployments",
2521
deploymentId,
2622
);
2723

24+
const connection = await hre.network.connect();
25+
2826
for await (const contractInfo of getVerificationInformation(deploymentDir)) {
2927
if (typeof contractInfo === "string") {
3028
console.log(
@@ -34,8 +32,6 @@ const verifyTask: NewTaskActionFunction<TaskVerifyArguments> = async (
3432
continue;
3533
}
3634

37-
const connection = await hre.network.connect();
38-
3935
console.log(
4036
`Verifying contract "${contractInfo.contract}" for network ${connection.networkName}...`,
4137
);
@@ -44,7 +40,7 @@ const verifyTask: NewTaskActionFunction<TaskVerifyArguments> = async (
4440
{
4541
...contractInfo,
4642
force,
47-
provider: blockscout ? "blockscout" : "etherscan",
43+
provider: "etherscan",
4844
},
4945
hre,
5046
);

0 commit comments

Comments
 (0)