Skip to content

Commit

Permalink
Added Linea Sepolia network and Infura endpoint (#4655).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 17, 2024
1 parent 287f743 commit b4aaab8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src.ts/providers/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ function injectCommonNetworks(): void {

registerEth("linea", 59144, { ensNetwork: 1 });
registerEth("linea-goerli", 59140, { });
registerEth("linea-sepolia", 59141, { });

registerEth("matic", 137, {
ensNetwork: 1,
Expand Down
5 changes: 4 additions & 1 deletion src.ts/providers/provider-infura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
* - BNB Smart Chain Mainnet (``bnb``)
* - BNB Smart Chain Testnet (``bnbt``)
* - Linea (``linea``)
* - Linea Goerlia Testnet (``linea-goerli``)
* - Linea Goerli Testnet (``linea-goerli``)
* - Linea Sepolia Testnet (``linea-sepolia``)
* - Optimism (``optimism``)
* - Optimism Goerli Testnet (``optimism-goerli``)
* - Optimism Sepolia Testnet (``optimism-sepolia``)
Expand Down Expand Up @@ -71,6 +72,8 @@ function getHost(name: string): string {
return "linea-mainnet.infura.io";
case "linea-goerli":
return "linea-goerli.infura.io";
case "linea-sepolia":
return "linea-sepolia.infura.io";
case "matic":
return "polygon-mainnet.infura.io";
case "matic-amoy":
Expand Down

0 comments on commit b4aaab8

Please sign in to comment.