-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26695 from MetaMask/v12.2.0-sync-with-v12.1.0
v12.2.0 sync with v12.1.0
- Loading branch information
Showing
242 changed files
with
23,276 additions
and
3,552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,8 +146,6 @@ jobs: | |
git config --global user.email '[email protected]' | ||
git commit -am "Update Attributions" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.LAVAMOAT_UPDATE_TOKEN }} | ||
- name: Post comment | ||
run: | | ||
if [[ $HAS_CHANGES == 'true' ]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ BLOCKAID_PUBLIC_KEY= | |
; Set this to true to enable the snap path for the Firefox WebDriver (Linux) | ||
; FIREFOX_SNAP= | ||
|
||
ENABLE_CONFIRMATION_REDESIGN= | ||
; Enable the redesigned confirmations still in development, without needing to toggle the developer setting. | ||
; ENABLE_CONFIRMATION_REDESIGN= | ||
|
||
; URL of security alerts API used to validate dApp requests | ||
; SECURITY_ALERTS_API_URL='http://localhost:3000' | ||
|
@@ -34,3 +35,7 @@ ENABLE_CONFIRMATION_REDESIGN= | |
|
||
; Enables the Settings Page - Developer Options | ||
; ENABLE_SETTINGS_PAGE_DEV_OPTIONS=true | ||
|
||
; The endpoint used to submit errors and tracing data to Sentry. | ||
; The below is the `test-metamask` project. | ||
; SENTRY_DSN_DEV=https://[email protected]/273496 |
58 changes: 58 additions & 0 deletions
58
.yarn/patches/@metamask-assets-controllers-npm-33.0.0-3e7448c4cd.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
diff --git a/dist/chunk-FGAZXVKS.js b/dist/chunk-FGAZXVKS.js | ||
index 4a6aa7918599269951044b9f8c7c076a7fe6a9c7..4c1054a867ff6aef1e26f8d84e2831f234c4e44e 100644 | ||
--- a/dist/chunk-FGAZXVKS.js | ||
+++ b/dist/chunk-FGAZXVKS.js | ||
@@ -503,6 +503,7 @@ fetchAndMapExchangeRatesForUnsupportedNativeCurrency_fn = async function({ | ||
if (fallbackCurrencyToNativeCurrencyConversionRate === null) { | ||
return {}; | ||
} | ||
+ const convertFallbackToNative = (value) => value !== void 0 && value !== null ? value * fallbackCurrencyToNativeCurrencyConversionRate : void 0; | ||
const updatedContractExchangeRates = Object.entries( | ||
contractExchangeInformations | ||
).reduce((acc, [tokenAddress, token]) => { | ||
@@ -510,7 +511,15 @@ fetchAndMapExchangeRatesForUnsupportedNativeCurrency_fn = async function({ | ||
...acc, | ||
[tokenAddress]: { | ||
...token, | ||
- price: token.price ? token.price * fallbackCurrencyToNativeCurrencyConversionRate : void 0 | ||
+ currency: nativeCurrency, | ||
+ price: convertFallbackToNative(token.price), | ||
+ marketCap: convertFallbackToNative(token.marketCap), | ||
+ allTimeHigh: convertFallbackToNative(token.allTimeHigh), | ||
+ allTimeLow: convertFallbackToNative(token.allTimeLow), | ||
+ totalVolume: convertFallbackToNative(token.totalVolume), | ||
+ high1d: convertFallbackToNative(token.high1d), | ||
+ low1d: convertFallbackToNative(token.low1d), | ||
+ dilutedMarketCap: convertFallbackToNative(token.dilutedMarketCap) | ||
} | ||
}; | ||
return acc; | ||
diff --git a/dist/chunk-P3O5CVAH.mjs b/dist/chunk-P3O5CVAH.mjs | ||
index 32379704450baee58a37623b1d0f6b471e69de2e..069c3deec15ad85057c910ecf0db31d856fd6ae2 100644 | ||
--- a/dist/chunk-P3O5CVAH.mjs | ||
+++ b/dist/chunk-P3O5CVAH.mjs | ||
@@ -503,6 +503,7 @@ fetchAndMapExchangeRatesForUnsupportedNativeCurrency_fn = async function({ | ||
if (fallbackCurrencyToNativeCurrencyConversionRate === null) { | ||
return {}; | ||
} | ||
+ const convertFallbackToNative = (value) => value !== void 0 && value !== null ? value * fallbackCurrencyToNativeCurrencyConversionRate : void 0; | ||
const updatedContractExchangeRates = Object.entries( | ||
contractExchangeInformations | ||
).reduce((acc, [tokenAddress, token]) => { | ||
@@ -510,7 +511,15 @@ fetchAndMapExchangeRatesForUnsupportedNativeCurrency_fn = async function({ | ||
...acc, | ||
[tokenAddress]: { | ||
...token, | ||
- price: token.price ? token.price * fallbackCurrencyToNativeCurrencyConversionRate : void 0 | ||
+ currency: nativeCurrency, | ||
+ price: convertFallbackToNative(token.price), | ||
+ marketCap: convertFallbackToNative(token.marketCap), | ||
+ allTimeHigh: convertFallbackToNative(token.allTimeHigh), | ||
+ allTimeLow: convertFallbackToNative(token.allTimeLow), | ||
+ totalVolume: convertFallbackToNative(token.totalVolume), | ||
+ high1d: convertFallbackToNative(token.high1d), | ||
+ low1d: convertFallbackToNative(token.low1d), | ||
+ dilutedMarketCap: convertFallbackToNative(token.dilutedMarketCap) | ||
} | ||
}; | ||
return acc; |
Oops, something went wrong.