@matterlabs/hardhat-zksync-verify
Version:
Hardhat plugin to verify smart contracts for the ZKsync network
19 lines (15 loc) • 480 B
text/typescript
import { ZkSyncVerifyPluginError } from '../../errors';
export class ZksyncMissingApiKeyError extends ZkSyncVerifyPluginError {
constructor(network: string) {
super(`You are trying to verify a contract in '${network}', but no API token was found for this network. Please provide one in your hardhat config. For example:
{
...
etherscan: {
apiKey: {
${network}: 'your API key'
}
}
}
See https://etherscan.io/apis`);
}
}