diff --git a/app/components/Nav/App/index.js b/app/components/Nav/App/index.js index bf9fece75090..a587ef6c3ae6 100644 --- a/app/components/Nav/App/index.js +++ b/app/components/Nav/App/index.js @@ -711,10 +711,6 @@ const App = (props) => { component={MultiRpcModal} /> ) : null} - -+ -+ -+ -+ -+ -+ -+ -\ No newline at end of file -diff --git a/node_modules/@metamask/preferences-controller/.idea/preferences-controller.iml b/node_modules/@metamask/preferences-controller/.idea/preferences-controller.iml -new file mode 100644 -index 0000000..24643cc ---- /dev/null -+++ b/node_modules/@metamask/preferences-controller/.idea/preferences-controller.iml -@@ -0,0 +1,12 @@ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -\ No newline at end of file -diff --git a/node_modules/@metamask/preferences-controller/.idea/workspace.xml b/node_modules/@metamask/preferences-controller/.idea/workspace.xml -new file mode 100644 -index 0000000..dbf94fd ---- /dev/null -+++ b/node_modules/@metamask/preferences-controller/.idea/workspace.xml -@@ -0,0 +1,50 @@ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ 1727275325414 -+ -+ -+ -+ -+ -+ -\ No newline at end of file diff --git a/node_modules/@metamask/preferences-controller/dist/chunk-FSWGV6H6.js b/node_modules/@metamask/preferences-controller/dist/chunk-FSWGV6H6.js index 30e985c..d03fa2f 100644 --- a/node_modules/@metamask/preferences-controller/dist/chunk-FSWGV6H6.js @@ -122,8 +20,7 @@ index 30e985c..d03fa2f 100644 + useTransactionSimulations: { persist: true, anonymous: true }, + showMultiRpcModal: { persist: false, anonymous: false }, }; --var name = "PreferencesController"; -+var name = 'PreferencesController'; + var name = "PreferencesController"; function getDefaultPreferencesState() { @@ -37,7 +41,7 @@ function getDefaultPreferencesState() { isIpfsGatewayEnabled: true, @@ -132,8 +29,7 @@ index 30e985c..d03fa2f 100644 - openSeaEnabled: false, + displayNftMedia: false, securityAlertsEnabled: false, -- selectedAddress: "", -+ selectedAddress: '', + selectedAddress: "", showIncomingTransactions: { @@ -64,7 +68,11 @@ function getDefaultPreferencesState() { }, @@ -156,7 +52,7 @@ index 30e985c..d03fa2f 100644 + if (useNftDetection && !this.state.displayNftMedia) { throw new Error( - "useNftDetection cannot be enabled if openSeaEnabled is false" -+ 'useNftDetection cannot be enabled if displayNftMedia is false', ++ "useNftDetection cannot be enabled if displayNftMedia is false" ); } this.update((state) => { @@ -224,82 +120,25 @@ index 30e985c..d03fa2f 100644 + * @param smartTransactionsOptInStatus - true to opt into smart transactions + */ + setSmartTransactionsOptInStatus(smartTransactionsOptInStatus) { -+ this.update((state) => { -+ state.smartTransactionsOptInStatus = smartTransactionsOptInStatus; -+ }); ++ this.update((state) => { ++ state.smartTransactionsOptInStatus = smartTransactionsOptInStatus; ++ }); + } + + /** -+ * A setter for the user to opt into transaction simulations -+ * -+ * @param useTransactionSimulations - true to opt into transaction simulations -+ */ ++ * A setter for the user to opt into transaction simulations ++ * ++ * @param useTransactionSimulations - true to opt into transaction simulations ++ */ + setUseTransactionSimulations(useTransactionSimulations) { -+ this.update((state) => { -+ state.useTransactionSimulations = useTransactionSimulations; -+ }); ++ this.update((state) => { ++ state.useTransactionSimulations = useTransactionSimulations; ++ }); + } + /** * A setter for the user preferences to enable/disable rpc methods. * -@@ -255,7 +312,7 @@ var PreferencesController = class extends _basecontroller.BaseController { - const { disabledRpcMethodPreferences } = this.state; - const newDisabledRpcMethods = { - ...disabledRpcMethodPreferences, -- [methodName]: isEnabled -+ [methodName]: isEnabled, - }; - this.update((state) => { - state.disabledRpcMethodPreferences = newDisabledRpcMethods; -@@ -297,21 +354,28 @@ var PreferencesController = class extends _basecontroller.BaseController { - * @param chainId - On hexadecimal format to enable the incoming transaction network - * @param isIncomingTransactionNetworkEnable - true to enable incoming transactions - */ -- setEnableNetworkIncomingTransactions(chainId, isIncomingTransactionNetworkEnable) { -- if (Object.values(_chunkPOA2PUW4js.ETHERSCAN_SUPPORTED_CHAIN_IDS).includes(chainId)) { -+ setEnableNetworkIncomingTransactions( -+ chainId, -+ isIncomingTransactionNetworkEnable, -+ ) { -+ if ( -+ Object.values(_chunkPOA2PUW4js.ETHERSCAN_SUPPORTED_CHAIN_IDS).includes( -+ chainId, -+ ) -+ ) { - this.update((state) => { - state.showIncomingTransactions = { - ...this.state.showIncomingTransactions, -- [chainId]: isIncomingTransactionNetworkEnable -+ [chainId]: isIncomingTransactionNetworkEnable, - }; - }); - } - } - }; - _syncIdentities = new WeakSet(); --syncIdentities_fn = function(addresses) { -- addresses = addresses.map( -- (address) => _controllerutils.toChecksumHexAddress.call(void 0, address) -+syncIdentities_fn = function (addresses) { -+ addresses = addresses.map((address) => -+ _controllerutils.toChecksumHexAddress.call(void 0, address), - ); - this.update((state) => { - const { identities } = state; -@@ -335,9 +399,7 @@ syncIdentities_fn = function(addresses) { - }; - var PreferencesController_default = PreferencesController; - -- -- -- -- --exports.getDefaultPreferencesState = getDefaultPreferencesState; exports.PreferencesController = PreferencesController; exports.PreferencesController_default = PreferencesController_default; -+exports.getDefaultPreferencesState = getDefaultPreferencesState; -+exports.PreferencesController = PreferencesController; -+exports.PreferencesController_default = PreferencesController_default; - //# sourceMappingURL=chunk-FSWGV6H6.js.map diff --git a/node_modules/@metamask/preferences-controller/dist/types/PreferencesController.d.ts b/node_modules/@metamask/preferences-controller/dist/types/PreferencesController.d.ts index 7e3ba15..c3c7ec6 100644 --- a/node_modules/@metamask/preferences-controller/dist/types/PreferencesController.d.ts @@ -360,9 +199,11 @@ index 7e3ba15..c3c7ec6 100644 setUseNftDetection(useNftDetection: boolean): void; /** - * Toggle the opensea enabled setting. -- * ++ * Toggle the display nft media enabled setting. + * - * @param openSeaEnabled - Boolean indicating user preference on using OpenSea's API. -- */ ++ * @param displayNftMedia - Boolean indicating user preference on using web2 third parties. + */ - setOpenSeaEnabled(openSeaEnabled: boolean): void; + setDisplayNftMedia(displayNftMedia: boolean): void; + /**