Skip to content

Commit

Permalink
[Dashboard] Add eth to mainnets and add env variable for RPC (#2660)
Browse files Browse the repository at this point in the history
* add eth to mainnets and add env variable for RPC

* fix network name
  • Loading branch information
portuu3 authored Oct 21, 2024
1 parent facf4ac commit 9523921
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export class NetworkConfigService {

constructor(private configService: ConfigService) {
this.networkMap = {
...(this.configService.get<string>('RPC_URL_ETHEREUM') && {
ethereum: {
chainId: ChainId.MAINNET,
rpcUrl: this.configService.get<string>('RPC_URL_ETHEREUM'),
},
}),
...(this.configService.get<string>('RPC_URL_SEPOLIA') && {
sepolia: {
chainId: ChainId.SEPOLIA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const TESTNET_CHAIN_IDS = [
ChainId.XLAYER_TESTNET,
];
export const MAINNET_CHAIN_IDS = [
ChainId.MAINNET,
ChainId.BSC_MAINNET,
ChainId.POLYGON,
ChainId.MOONBEAM,
Expand Down

0 comments on commit 9523921

Please sign in to comment.