Skip to content
2 changes: 0 additions & 2 deletions app/components/Views/AddressSelector/AddressSelector.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
MAINNET_DISPLAY_NAME,
OPTIMISM_DISPLAY_NAME,
POLYGON_DISPLAY_NAME,
SEI_DISPLAY_NAME,
} from '../../../core/Engine/constants';

jest.mock('../../../core/Engine', () => ({
Expand Down Expand Up @@ -138,7 +137,6 @@ describe('AccountSelector', () => {
expect(networkNames).toEqual([
MAINNET_DISPLAY_NAME,
BNB_DISPLAY_NAME,
SEI_DISPLAY_NAME,
POLYGON_DISPLAY_NAME,
OPTIMISM_DISPLAY_NAME,
ARBITRUM_DISPLAY_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,187 +1075,6 @@ exports[`AccountSelector renders correctly and matches snapshot 1`] = `
"flexDirection": "row",
}
}
>
<View
style={
[
{
"alignItems": "center",
"backgroundColor": "#ffffff",
"display": "flex",
"flexDirection": "row",
"gap": 16,
"justifyContent": "space-between",
"paddingBottom": 0,
"paddingLeft": 0,
"paddingRight": 0,
"paddingTop": 0,
},
undefined,
]
}
testID="multichain-address-row"
>
<View
collapsable={false}
pointerEvents="none"
style={
{
"backgroundColor": "#457a391a",
"bottom": 0,
"left": 0,
"opacity": 0,
"position": "absolute",
"right": 0,
"top": 0,
}
}
/>
<View
style={
{
"alignItems": "center",
"backgroundColor": "#ffffff",
"borderRadius": 8,
"height": 32,
"justifyContent": "center",
"overflow": "hidden",
"width": 32,
}
}
testID="multichain-address-row-network-icon"
>
<Image
onError={[Function]}
resizeMode="contain"
source={1}
style={
{
"height": 32,
"width": 32,
}
}
testID="network-avatar-image"
/>
</View>
<View
style={
[
{
"alignItems": "flex-start",
"display": "flex",
"flexBasis": "0%",
"flexDirection": "column",
"flexGrow": 1,
"flexShrink": 1,
},
undefined,
]
}
>
<Text
accessibilityRole="text"
style={
[
{
"color": "#121314",
"fontFamily": "Geist Medium",
"fontSize": 16,
"fontWeight": 400,
"letterSpacing": 0,
"lineHeight": 24,
},
undefined,
]
}
testID="multichain-address-row-network-name"
>
Sei
</Text>
<Text
accessibilityRole="text"
style={
[
{
"color": "#686e7d",
"fontFamily": "Geist Medium",
"fontSize": 14,
"fontWeight": 400,
"letterSpacing": 0,
"lineHeight": 22,
},
undefined,
]
}
testID="multichain-address-row-address"
>
0x4FeC2...fdcB5
</Text>
</View>
<View
style={
[
{
"alignItems": "center",
"display": "flex",
"flexDirection": "row",
"gap": 16,
},
undefined,
]
}
/>
</View>
</View>
</View>
</TouchableOpacity>
</View>
<View
index={3}
onLayout={[Function]}
style={
{
"flexDirection": "column",
"height": undefined,
"left": 0,
"maxHeight": undefined,
"maxWidth": undefined,
"minHeight": undefined,
"minWidth": undefined,
"position": "absolute",
"top": 0,
"width": 0,
}
}
>
<TouchableOpacity
disabled={false}
onPress={[Function]}
style={
{
"backgroundColor": "#ffffff",
"borderRadius": 4,
"opacity": 1,
"position": "relative",
}
}
>
<View
accessibilityRole="none"
accessible={true}
style={
{
"padding": 16,
}
}
>
<View
style={
{
"alignItems": "center",
"flexDirection": "row",
}
}
>
<View
style={
Expand Down Expand Up @@ -1392,7 +1211,7 @@ exports[`AccountSelector renders correctly and matches snapshot 1`] = `
</TouchableOpacity>
</View>
<View
index={4}
index={3}
onLayout={[Function]}
style={
{
Expand Down Expand Up @@ -1573,7 +1392,7 @@ exports[`AccountSelector renders correctly and matches snapshot 1`] = `
</TouchableOpacity>
</View>
<View
index={5}
index={4}
onLayout={[Function]}
style={
{
Expand Down Expand Up @@ -1754,7 +1573,7 @@ exports[`AccountSelector renders correctly and matches snapshot 1`] = `
</TouchableOpacity>
</View>
<View
index={6}
index={5}
onLayout={[Function]}
style={
{
Expand Down Expand Up @@ -1935,7 +1754,7 @@ exports[`AccountSelector renders correctly and matches snapshot 1`] = `
</TouchableOpacity>
</View>
<View
index={7}
index={6}
onLayout={[Function]}
style={
{
Expand Down Expand Up @@ -2116,7 +1935,7 @@ exports[`AccountSelector renders correctly and matches snapshot 1`] = `
</TouchableOpacity>
</View>
<View
index={8}
index={7}
onLayout={[Function]}
style={
{
Expand Down
7 changes: 5 additions & 2 deletions app/core/Engine/controllers/network-controller-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ export function getInitialNetworkControllerState(persistedState: {
initialNetworkControllerState.networkConfigurationsByChainId[
ChainId['polygon-mainnet']
].name = 'Polygon';
initialNetworkControllerState.networkConfigurationsByChainId[

// Remove Sei from initial state so it appears in Additional Networks section
// Users can add it manually, and it will be available in FEATURED_RPCS
delete initialNetworkControllerState.networkConfigurationsByChainId[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not understanding the need od this delete, shouldnt this be handled by the migration?

ChainId['sei-mainnet']
].name = 'Sei';
];
}

return initialNetworkControllerState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ function setQuicknodeEnvironmentVariables() {
process.env.QUICKNODE_POLYGON_URL = 'https://example.quicknode.com/polygon';
process.env.QUICKNODE_BASE_URL = 'https://example.quicknode.com/base';
process.env.QUICKNODE_BSC_URL = 'https://example.quicknode.com/bsc';
process.env.QUICKNODE_SEI_URL = 'https://example.quicknode.com/sei';
}

/**
Expand Down
Loading
Loading