Skip to content

Commit

Permalink
Added optimism to EtherscanProvider (#2968).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 12, 2022
1 parent 32b7373 commit c6eebf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/providers/src.ts/etherscan-provider.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit c6eebf9

Please sign in to comment.