From f90182158a15305177031683e2a4409ed55ba568 Mon Sep 17 00:00:00 2001 From: EtherWizard33 Date: Wed, 25 Dec 2024 13:10:37 +0300 Subject: [PATCH 01/25] chore: toggling the chain permissions feature flags so they are always true, to check CI --- app/util/networks/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/util/networks/index.js b/app/util/networks/index.js index 461f8ea6b87..a7ac9605916 100644 --- a/app/util/networks/index.js +++ b/app/util/networks/index.js @@ -488,11 +488,9 @@ export const getBlockExplorerTxUrl = ( export const getIsNetworkOnboarded = (chainId, networkOnboardedState) => networkOnboardedState[chainId]; -export const isMultichainVersion1Enabled = - process.env.MM_MULTICHAIN_V1_ENABLED === 'true'; +export const isMultichainVersion1Enabled = true; -export const isChainPermissionsFeatureEnabled = - process.env.MM_CHAIN_PERMISSIONS === 'true'; +export const isChainPermissionsFeatureEnabled = true; export const isPermissionsSettingsV1Enabled = process.env.MM_PERMISSIONS_SETTINGS_V1_ENABLED === 'true'; From 294e637182cffb59eefc92b9cf3cf39c8b1172dd Mon Sep 17 00:00:00 2001 From: EtherWizard33 Date: Wed, 25 Dec 2024 13:16:00 +0300 Subject: [PATCH 02/25] chore: remove MC FF OFF code (dead code) from NetworkVerificationInfo component --- .../NetworkVerificationInfo.tsx | 46 ++----------------- 1 file changed, 5 insertions(+), 41 deletions(-) diff --git a/app/components/UI/NetworkVerificationInfo/NetworkVerificationInfo.tsx b/app/components/UI/NetworkVerificationInfo/NetworkVerificationInfo.tsx index 7595f71cb85..11a59b7eb5f 100644 --- a/app/components/UI/NetworkVerificationInfo/NetworkVerificationInfo.tsx +++ b/app/components/UI/NetworkVerificationInfo/NetworkVerificationInfo.tsx @@ -116,13 +116,7 @@ const NetworkVerificationInfo = ({ const renderCurrencySymbol = () => ( <> - + {strings('add_custom_network.currency_symbol')} {customNetworkInformation.ticker} @@ -131,13 +125,7 @@ const NetworkVerificationInfo = ({ const renderChainId = () => ( <> - + {strings('add_custom_network.chain_id')} @@ -148,13 +136,7 @@ const NetworkVerificationInfo = ({ const renderNetworkDisplayName = () => ( <> - + {strings('add_custom_network.display_name')} @@ -215,22 +197,12 @@ const NetworkVerificationInfo = ({ networkDetailsExpanded ? styles.nestedScrollContent : undefined } > - {!isMultichainVersion1Enabled && renderNetworkDisplayName()} - {isMultichainVersion1Enabled && renderCurrencySymbol()} - {!isMultichainVersion1Enabled && renderChainId()} - {isMultichainVersion1Enabled ? ( renderNetworkRpcUrlLabel() ) : ( - + {isMultichainVersion1Enabled ? strings('networks.network_rpc_url_label') : strings('add_custom_network.network_url')} @@ -248,15 +220,7 @@ const NetworkVerificationInfo = ({ {isMultichainVersion1Enabled && renderNetworkDisplayName()} - {!isMultichainVersion1Enabled && renderCurrencySymbol()} - - + {strings('add_custom_network.block_explorer_url')} {customNetworkInformation.blockExplorerUrl} From 243fa36a49fe3bd85b067d71402cc05244778630 Mon Sep 17 00:00:00 2001 From: EtherWizard33 Date: Wed, 25 Dec 2024 13:21:10 +0300 Subject: [PATCH 03/25] chore: remove MC FF OFF code (dead code) from AccountConnectMultiSelector component --- .../AccountConnectMultiSelector.tsx | 80 ++----------------- 1 file changed, 6 insertions(+), 74 deletions(-) diff --git a/app/components/Views/AccountConnect/AccountConnectMultiSelector/AccountConnectMultiSelector.tsx b/app/components/Views/AccountConnect/AccountConnectMultiSelector/AccountConnectMultiSelector.tsx index 2a7992fba0c..eaf5fffa039 100644 --- a/app/components/Views/AccountConnect/AccountConnectMultiSelector/AccountConnectMultiSelector.tsx +++ b/app/components/Views/AccountConnect/AccountConnectMultiSelector/AccountConnectMultiSelector.tsx @@ -105,50 +105,6 @@ const AccountConnectMultiSelector = ({ }); }, [navigate, urlWithProtocol, isRenderedAsBottomSheet, onRevokeAllHandler]); - const renderSelectAllButton = useCallback( - () => - Boolean(accounts.length) && - !isMultichainVersion1Enabled && ( -