diff --git a/packages/providers/src.ts/etherscan-provider.ts b/packages/providers/src.ts/etherscan-provider.ts index a51002038..848b555f3 100644 --- a/packages/providers/src.ts/etherscan-provider.ts +++ b/packages/providers/src.ts/etherscan-provider.ts @@ -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 {