Skip to content

Commit

Permalink
Added optimism network
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana Loznianu committed Nov 28, 2023
1 parent 66b292f commit c964c30
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 23 deletions.
4 changes: 2 additions & 2 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = {

// List of chainIds which metadata cache queries will return by default.
// This preselects the Chains user preferences.
chainIds: [1, 137, 10],
chainIds: [1, 137],

// List of all supported chainIds. Used to populate the Chains user preferences list.
chainIdsSupported: [1, 137, 5, 80001, 11155111],
chainIdsSupported: [1, 137, 10, 5, 80001, 11155111],

customProviderUrl: process.env.NEXT_PUBLIC_PROVIDER_URL,

Expand Down
3 changes: 3 additions & 0 deletions src/@hooks/useNetworkMetadata/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export function getNetworkDisplayName(data: EthereumListsChain): string {
case 137:
displayName = 'Polygon'
break
case 10:
displayName = 'OP Mainnet'
break
case 1285:
displayName = 'Moonriver'
break
Expand Down
31 changes: 11 additions & 20 deletions src/@images/optimism.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/@shared/NetworkName/NetworkIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function NetworkIcon({ name }: { name: string }): ReactElement {
? BscIcon
: name.includes('Energy Web')
? EnergywebIcon
: name.includes('Optimism')
: name.includes('OP Mainnet')
? OptimismIcon
: EthIcon // ETH icon as fallback

Expand Down

0 comments on commit c964c30

Please sign in to comment.