Skip to content

Commit d01b4cb

Browse files
committed
Fixed Infura BSC network URLs (#4951).
1 parent 158f5d0 commit d01b4cb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src.ts/_tests/create-provider.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ const ProviderCreators: Array<ProviderCreator> = [
7070
name: "InfuraProvider",
7171
networks: ethNetworks,
7272
create: function(network: string) {
73-
return new InfuraProvider(network, "49a0efa3aaee4fd99797bfa94d8ce2f1");
73+
//return new InfuraProvider(network, "49a0efa3aaee4fd99797bfa94d8ce2f1");
74+
// Important: INFURA selects netwowrks based on API key, so
75+
// to test proper default configuation, we must use it
76+
return new InfuraProvider(network);
7477
}
7578
},
7679
/*

src.ts/providers/provider-infura.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,15 @@ function getHost(name: string): string {
6060
return "arbitrum-sepolia.infura.io";
6161
case "base":
6262
return "base-mainnet.infura.io";
63-
case "base-goerlia":
63+
case "base-goerlia": // @TODO: Remove this typo in the future!
64+
case "base-goerli":
6465
return "base-goerli.infura.io";
6566
case "base-sepolia":
6667
return "base-sepolia.infura.io";
6768
case "bnb":
68-
return "bnbsmartchain-mainnet.infura.io";
69+
return "bsc-mainnet.infura.io";
6970
case "bnbt":
70-
return "bnbsmartchain-testnet.infura.io";
71+
return "bsc-testnet.infura.io";
7172
case "linea":
7273
return "linea-mainnet.infura.io";
7374
case "linea-goerli":

0 commit comments

Comments
 (0)