diff --git a/packages/controller-utils/src/types.ts b/packages/controller-utils/src/types.ts index 83b5fb5977..f71791d203 100644 --- a/packages/controller-utils/src/types.ts +++ b/packages/controller-utils/src/types.ts @@ -108,12 +108,12 @@ export type BlockExplorerUrl = (typeof BlockExplorerUrl)[keyof typeof BlockExplorerUrl]; export const NetworkNickname = { - [BuiltInNetworkName.Mainnet]: 'Mainnet', + [BuiltInNetworkName.Mainnet]: 'Ethereum Mainnet', [BuiltInNetworkName.Goerli]: 'Goerli', [BuiltInNetworkName.Sepolia]: 'Sepolia', [BuiltInNetworkName.LineaGoerli]: 'Linea Goerli', [BuiltInNetworkName.LineaSepolia]: 'Linea Sepolia', - [BuiltInNetworkName.LineaMainnet]: 'Linea Mainnet', + [BuiltInNetworkName.LineaMainnet]: 'Linea', } as const satisfies Record; export type NetworkNickname = (typeof NetworkNickname)[keyof typeof NetworkNickname]; diff --git a/packages/network-controller/tests/NetworkController.test.ts b/packages/network-controller/tests/NetworkController.test.ts index 8ada6adaa0..24665f9c88 100644 --- a/packages/network-controller/tests/NetworkController.test.ts +++ b/packages/network-controller/tests/NetworkController.test.ts @@ -358,7 +358,7 @@ describe('NetworkController', () => { "blockExplorerUrls": Array [], "chainId": "0x1", "defaultRpcEndpointIndex": 0, - "name": "Mainnet", + "name": "Ethereum Mainnet", "nativeCurrency": "ETH", "rpcEndpoints": Array [ Object { @@ -428,7 +428,7 @@ describe('NetworkController', () => { "blockExplorerUrls": Array [], "chainId": "0xe708", "defaultRpcEndpointIndex": 0, - "name": "Linea Mainnet", + "name": "Linea", "nativeCurrency": "ETH", "rpcEndpoints": Array [ Object { @@ -3647,7 +3647,7 @@ describe('NetworkController', () => { }), ).toThrow( new Error( - "Could not add network with chain ID 0x1337 and Infura RPC endpoint for 'Mainnet' which represents 0x1, as the two conflict", + "Could not add network with chain ID 0x1337 and Infura RPC endpoint for 'Ethereum Mainnet' which represents 0x1, as the two conflict", ), ); }, @@ -6531,7 +6531,7 @@ describe('NetworkController', () => { ], }), ).rejects.toThrow( - "Could not update network to point to same RPC endpoint as existing network for chain 0x1 ('Mainnet')", + "Could not update network to point to same RPC endpoint as existing network for chain 0x1 ('Ethereum Mainnet')", ); }, );