Skip to content

Commit

Permalink
feat(evm): Add lukso-testnet to supported networks
Browse files Browse the repository at this point in the history
  • Loading branch information
kkirkov committed Sep 9, 2024
1 parent b3f7427 commit 1af09d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/evm/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const chainIds = {
"polygon-mainnet": 137,
"polygon-mumbai": 80001,
sepolia: 11155111,
"lukso-testnet": 4201,
}

function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
Expand All @@ -57,6 +58,9 @@ function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
case "chiado":
jsonRpcUrl = "https://rpc.chiadochain.net/"
break
case "lukso-testnet":
jsonRpcUrl = "https://rpc.testnet.lukso.network"
break
default:
jsonRpcUrl = `https://${chain}.infura.io/v3/${infuraApiKey}`
}
Expand Down Expand Up @@ -109,6 +113,7 @@ const config: HardhatUserConfig = {
bsc: getChainConfig("bsc"),
gnosis: getChainConfig("gnosis"),
chiado: getChainConfig("chiado"),
"lukso-testnet": getChainConfig("lukso-testnet"),
mainnet: getChainConfig("mainnet"),
optimism: getChainConfig("optimism-mainnet"),
"polygon-mainnet": getChainConfig("polygon-mainnet"),
Expand Down

0 comments on commit 1af09d6

Please sign in to comment.