Skip to content

Commit

Permalink
check network.name to execute verify
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Sep 12, 2022
1 parent e36a9d1 commit 98421b3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy/CORN.ts
Expand Up @@ -27,7 +27,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if ((await owner.getChainId()) != 31337) {
if (network.name == 'mainnet' || network.name == 'goerli') {
await hre.run("verify:verify", {
address: cornDeploymentResult.address,
constructorArguments: []
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulFactory.ts
Expand Up @@ -80,7 +80,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if ((await owner.getChainId()) != 31337) {
if (network.name == 'mainnet' || network.name == 'goerli') {
await hre.run("verify:verify", {
address: soulFactoryDeploymentResult.address,
constructorArguments: [
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulLinker.ts
Expand Up @@ -27,7 +27,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if ((await owner.getChainId()) != 31337) {
if (network.name == 'mainnet' || network.name == 'goerli') {
await hre.run("verify:verify", {
address: soulLinkerDeploymentResult.address,
constructorArguments: [env.OWNER || owner.address]
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulName.ts
Expand Up @@ -34,7 +34,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if ((await owner.getChainId()) != 31337) {
if (network.name == 'mainnet' || network.name == 'goerli') {
await hre.run("verify:verify", {
address: soulNameDeploymentResult.address,
constructorArguments: [
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulboundIdentity.ts
Expand Up @@ -30,7 +30,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if ((await owner.getChainId()) != 31337) {
if (network.name == 'mainnet' || network.name == 'goerli') {
await hre.run("verify:verify", {
address: soulboundIdentityDeploymentResult.address,
constructorArguments: [
Expand Down

0 comments on commit 98421b3

Please sign in to comment.