I know I can use the following to verify a smart contract via hardhat on a known network, but how about a custom network like zkSync alpha testnet?
npx hardhat verify "ADDRESS" --network "network name"
I know I can use the following to verify a smart contract via hardhat on a known network, but how about a custom network like zkSync alpha testnet?
npx hardhat verify "ADDRESS" --network "network name"
Copyright © 2021 Jogjafile Inc.
We've released a specific hardhat plugin to verify contracts on zkSync (@matterlabs/hardhat-zksync-verify). In summary, you'd need to add the following in the
hardhat.config.tsfile:And then you could run `yarn hardhat verify --network zkTestnet YOUR_CONTRACT_ADDRESS.
You can find all the details in this section of the docs: https://v2-docs.zksync.io/api/hardhat/plugins.html#hardhat-zksync-verify