Skip to content

Commit

Permalink
Use celoscan api in mainnet and alfajores
Browse files Browse the repository at this point in the history
- remove \ escape
  • Loading branch information
anarkrypto committed Feb 22, 2023
1 parent 449624a commit a396fb2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/CeloscanProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ export class CeloscanProvider extends providers.EtherscanProvider {
getBaseUrl(): string {
switch (this.network ? this.network.name : "invalid") {
case "celo":
return "https:/\/explorer.celo.org/mainnet";
return "https://api.celoscan.io";
case "alfajores":
return "https:/\/explorer.celo.org/alfajores";
return "https://alfajores.celoscan.io";
case "baklava":
return "https:/\/explorer.celo.org/baklava";
// baklava is currently not supported by celoscan.io, so we use Blockscout
return "https://explorer.celo.org/baklava";
default:
};

Expand Down

0 comments on commit a396fb2

Please sign in to comment.