Skip to content

Commit 797f6e1

Browse files
committed
fix(deploy-minter): update verify exclusion
bypasses verify for all filecoin networks
1 parent be99258 commit 797f6e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contracts/tasks/deploy-minter.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ task("deploy-minter", "Deploy contracts and verify")
3232
}
3333

3434
if (network.name !== "hardhat" && network.name !== "localhost") {
35-
if (network.name !== "filecoinCalibration") {
35+
if (!network.name.startsWith("filecoin")) {
3636
try {
3737
const code = await hypercertMinter.instance?.provider.getCode(address);
3838
if (code === "0x") {
@@ -50,7 +50,7 @@ task("deploy-minter", "Deploy contracts and verify")
5050
}
5151
console.error(errorMessage);
5252
}
53-
} else if (network.name === "filecoinCalibration") {
53+
} else {
5454
try {
5555
const code = await hypercertMinter.instance?.provider.getCode(address);
5656
if (code === "0x") {
@@ -67,8 +67,6 @@ task("deploy-minter", "Deploy contracts and verify")
6767
}
6868
console.error(errorMessage);
6969
}
70-
} else {
71-
console.log("No verification for this network");
7270
}
7371
}
7472
});

0 commit comments

Comments
 (0)