Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verification with custom chain config #845

Open
nvitorovic opened this issue Nov 28, 2024 · 1 comment
Open

Verification with custom chain config #845

nvitorovic opened this issue Nov 28, 2024 · 1 comment
Assignees
Labels
status:needs-more-information There isn't enough information to start working on this issue

Comments

@nvitorovic
Copy link

What happened?

I attempted to add a custom chain using Tenderly Virtual TestNets with chain ID 73571 (made up ID). Deployment went on, but verification failled. The custom chain shows up on the list npx hardhat verify --list-networks. I get

Verification not natively supported for chainId 73571. Please use a custom chain configuration to add support.

Minimal reproduction steps

  1. Added the following to hardhat.config.ts, per docs
const config: HardhatUserConfig = {
  solidity: "0.8.27",
  networks: {
    tenderly_ci: {
      url: process.env.TENDERLY_ADMIN_RPC_URL,
      chainId: parseInt(process.env.TENDERLY_CHAIN_ID!)
    },
  },
  etherscan: {
    apiKey: {
      tenderly_ci: process.env.TENDERLY_ACCESS_KEY!
    },
    customChains: [
      {
        network: "tenderly_ci",
        // here
        chainId: parseInt(process.env.TENDERLY_CHAIN_ID!),
        urls: {
          apiURL: `${process.env.TENDERLY_ADMIN_RPC_URL}/verify/etherscan`,
          browserURL: process.env.TENDERLY_ADMIN_RPC_URL!
        }
      }
    ]
  },
  tenderly: {
    project: process.env.TENDERLY_PROJECT_NAME!,
    username: process.env.TENDERLY_ACCOUNT_NAME!,
    accessKey: process.env.TENDERLY_ACCESS_KEY!
  },
  sourcify: {
    enabled: false
  }
};
  1. npx hardhat verify --list-networks works
  2. yes | npx hardhat ignition deploy ./ignition/modules/Lock.ts --network tenderly_ci --deployment-id test - contract gets deployed, errors with
Verification not natively supported for chainId 73571. Please use a custom chain configuration to add support.

Search terms

tenderly verification

@kanej
Copy link
Member

kanej commented Dec 9, 2024

Hey @nvitorovic, Ignition and hardhat-verify are separate plugins (though hardhat-verify`), so there may be an issue in Ignition's wrapping code.
Taking a look, Ignition throws that error if the lookup on custom chains fails.
If the chain id under custom chains is hard coded to 73571, do you get a different error?

Can I ask more generally have you been able to verify against Tenderly virtual nets, say using hardhat-verify?

@kanej kanej added status:needs-more-information There isn't enough information to start working on this issue and removed status:triaging labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-more-information There isn't enough information to start working on this issue
Projects
Status: No status
Development

No branches or pull requests

3 participants