We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b7373 commit c6eebf9Copy full SHA for c6eebf9
packages/providers/src.ts/etherscan-provider.ts
@@ -181,10 +181,12 @@ export class EtherscanProvider extends BaseProvider{
181
return "https:/\/api-kovan.etherscan.io";
182
case "goerli":
183
return "https:/\/api-goerli.etherscan.io";
184
+ case "optimism":
185
+ return "https:/\/api-optimistic.etherscan.io";
186
default:
187
}
188
- return logger.throwArgumentError("unsupported network", "network", name);
189
+ return logger.throwArgumentError("unsupported network", "network", this.network.name);
190
191
192
getUrl(module: string, params: Record<string, string>): string {
0 commit comments