Closed cryptodev-2s closed 3 weeks ago
This PR add three new properties to PreferencesController state:
@metamask/preferences-controller
Added
useSafeChainsListValidation
PreferencesController
true
setUseSafeChainsListValidation
tokenSortConfig
{ key: 'tokenFiatAmount', order: 'dsc', sortCallback: 'stringNumeric' }
setTokenSortConfig
privacyMode
false
setPrivacyMode
This change will also simplify the patch in this bump https://github.com/MetaMask/metamask-mobile/pull/12055
Explanation
This PR add three new properties to PreferencesController state:
References
Changelog
@metamask/preferences-controller
Added
useSafeChainsListValidation
preference (#4860)useSafeChainsListValidation
property to thePreferencesController
state (default:true
)setUseSafeChainsListValidation
method to set this propertytokenSortConfig
preference (#4860)tokenSortConfig
property to thePreferencesController
state (default value:{ key: 'tokenFiatAmount', order: 'dsc', sortCallback: 'stringNumeric' }
)setTokenSortConfig
method to set this propertyprivacyMode
preference (#4860)privacyMode
property to thePreferencesController
state (default value:false
)setPrivacyMode
method to set this propertyChecklist