Skip to content

Commit

Permalink
rename mainnet to ethereum
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Feb 17, 2023
1 parent 01f5783 commit 3a89c00
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/helpers/networks.ts
Expand Up @@ -31,7 +31,7 @@ export const getNetworkNameByChainId = (chainId: number): NetworkName => {
switch (chainId) {
// ETH
case ethereumChainId:
return 'mainnet';
return 'ethereum';
case goerliChainId:
return 'goerli';

Expand Down Expand Up @@ -134,7 +134,7 @@ const mumbaiNetwork: Network = {
};

const ethereumNetwork: Network = {
networkName: 'mainnet',
networkName: 'ethereum',
chainName: 'Ethereum Mainnet',
chainId: parseInt(ethers.utils.hexValue(ethereumChainId)),
nativeCurrency: {
Expand All @@ -159,8 +159,10 @@ export const SupportedNetworks: {
[key in NetworkName]: Network;
} = {
// ETH
mainnet: ethereumNetwork,
ethereum: ethereumNetwork,
goerli: goerliNetwork,
// deprecated!
mainnet: ethereumNetwork,
// BSC
bsc: BSCNetwork,
bsctest: BSCTestnet,
Expand Down

0 comments on commit 3a89c00

Please sign in to comment.