Added optimism to EtherscanProvider (#2968).

This commit is contained in:
Richard Moore 2022-05-12 16:38:29 -04:00
parent 32b7373456
commit c6eebf9928

@ -181,10 +181,12 @@ export class EtherscanProvider extends BaseProvider{
return "https:/\/api-kovan.etherscan.io";
case "goerli":
return "https:/\/api-goerli.etherscan.io";
case "optimism":
return "https:/\/api-optimistic.etherscan.io";
default:
}
return logger.throwArgumentError("unsupported network", "network", name);
return logger.throwArgumentError("unsupported network", "network", this.network.name);
}
getUrl(module: string, params: Record<string, string>): string {