From 0f90c4239a0984c7204ebcbd17c878745fcd76ec Mon Sep 17 00:00:00 2001 From: MetaMask Bot Date: Tue, 20 Jul 2021 12:33:28 +0000 Subject: [PATCH 1/5] Version v9.8.2 --- CHANGELOG.md | 15 ++++++++++++++- package.json | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71df78542..585915031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [9.8.2] +### Uncategorized +- Version v9.8.1 RC ([#11517](https://github.com/MetaMask/metamask-extension/pull/11517)) +- Updating CHANGELOG.md +- Retrieve state after async action before updating state in _setSwapsQuoteRefreshTime ([#11538](https://github.com/MetaMask/metamask-extension/pull/11538)) +- Update CHANGELOG.md header +- Updating changelog for 9.8.1 +- Version v9.8.1 +- moving some properties to identifiable payload ([#11506](https://github.com/MetaMask/metamask-extension/pull/11506)) +- Converting gas params for tx metrics to decimal GWEI ([#11482](https://github.com/MetaMask/metamask-extension/pull/11482)) +- Using current time in place of block timestamp for completion time metric ([#11483](https://github.com/MetaMask/metamask-extension/pull/11483)) + ## [9.8.1] ### Changed - Adjusting transaction metrics values @@ -2336,7 +2348,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Uncategorized - Added the ability to restore accounts from seed words. -[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v9.8.1...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v9.8.2...HEAD +[9.8.2]: https://github.com/MetaMask/metamask-extension/compare/v9.8.1...v9.8.2 [9.8.1]: https://github.com/MetaMask/metamask-extension/compare/v9.8.0...v9.8.1 [9.8.0]: https://github.com/MetaMask/metamask-extension/compare/v9.7.1...v9.8.0 [9.7.1]: https://github.com/MetaMask/metamask-extension/compare/v9.7.0...v9.7.1 diff --git a/package.json b/package.json index 9fb661cbc..61b05b65f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-crx", - "version": "9.8.1", + "version": "9.8.2", "private": true, "repository": { "type": "git", From b7ee6f47f83767f4c1e2ddeebea1db7458b3a4bd Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Tue, 20 Jul 2021 15:07:07 -0230 Subject: [PATCH 2/5] Ensure gas limit estimation for token sends has correct default/base gas (#11565) * Ensure gas limit estimation for token sends has correct default/base gas * Fix comment change --- ui/ducks/send/send.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ui/ducks/send/send.js b/ui/ducks/send/send.js index 718d78d93..b10f5fa29 100644 --- a/ui/ducks/send/send.js +++ b/ui/ducks/send/send.js @@ -183,8 +183,19 @@ async function estimateGasLimitForSend({ let isSimpleSendOnNonStandardNetwork = false; // blockGasLimit may be a falsy, but defined, value when we receive it from - // state, so we use logical or to fall back to MIN_GAS_LIMIT_HEX. - const blockGasLimit = options.blockGasLimit || MIN_GAS_LIMIT_HEX; + // state, so we use logical or to fall back to MIN_GAS_LIMIT_HEX. Some + // network implementations check the gas parameter supplied to + // eth_estimateGas for validity. For this reason, we set token sends + // blockGasLimit default to a higher number. Note that the current gasLimit + // on a BLOCK is 15,000,000 and will be 30,000,000 on mainnet after London. + // Meanwhile, MIN_GAS_LIMIT_HEX is 0x5208. + let blockGasLimit = MIN_GAS_LIMIT_HEX; + if (options.blockGasLimit) { + blockGasLimit = options.blockGasLimit; + } else if (sendToken) { + blockGasLimit = GAS_LIMITS.BASE_TOKEN_ESTIMATE; + } + // The parameters below will be sent to our background process to estimate // how much gas will be used for a transaction. That background process is // located in tx-gas-utils.js in the transaction controller folder. From eb3b9e213bc164d14cddad6580842abd5a7d521f Mon Sep 17 00:00:00 2001 From: Daniel <80175477+dan437@users.noreply.github.com> Date: Tue, 20 Jul 2021 19:17:15 +0200 Subject: [PATCH 3/5] Add support for Polygon (#11545) * Fix a check for EIP presense * Add support for Polygon * Update default Polygon URL * Trigger Build * Use a more user-friendly error message for disabled Swaps API calls --- app/images/matic-token.png | Bin 0 -> 16286 bytes shared/constants/network.js | 2 ++ shared/constants/swaps.js | 20 ++++++++++++++++++++ ui/pages/swaps/swaps.util.js | 3 +++ 4 files changed, 25 insertions(+) create mode 100644 app/images/matic-token.png diff --git a/app/images/matic-token.png b/app/images/matic-token.png new file mode 100644 index 0000000000000000000000000000000000000000..b154c46ea54324347bedc0b9f71ad5acb18b97d6 GIT binary patch literal 16286 zcmZ|019UCHvp$;S#I|kQc1~>T#I|kQww;{Vwr$(CUe52{ckloG*Lr)cJ=0V3byZLI z-qTgxUxmrZh`~T&LIMB)z=;1AR`@x;{riH0{v1OuG{*=l8R~}*p0Q?^e008gL835o{F5v$nbAkTn z?pyA!|1JLm(nXkp0{{R)nJK9`s!2<68rWFT>KWST8_~L2+5Q6naJzE;6s?RL_3&M- zEUg_lU3m!qgW&ur{}a;@;{ONYXu(6MCM}0AWMglH&q_;AOHarPiI0!ZZEtAIsUR%+ z-_?JvcnD1$9c?-3=v-V}XkD0SZR}0x7&tgM=;#^g7#V4P5Ht>M){c6vG}aD8|E1*r z)gx@=U|?@%>u6?UjsH)tp1zHfBM%|rKSTfX`LA|5ni>DEC2NQOeypDdr2BV=j)9h* z?tgUuROS9B7Qw3YcogQ|5w5PCI0VP+;soC z>;LG!{~DYBNPh;07m}Oqe+HTt@=`i=;AiM3#f1fwTmdh=z%sE1(`=NdEw_^R?Oagg z_)cUYyP7jfCTLL3O z`qG2@0f~bfK@=`tQRYvY6`y~8cdm~IuWmx{@NDuZ^EDcml(hGCpH-A!SJ3^=OQ3@f z6;32*T0lN(Y=(;o^G8q^9HKN!gesy8A{de&5Thayg~$`l73jB3+M(=I#z&^5=zoDp ziET+m{)*iDB)@9d<*Gr|l5RP>U5D_*MN`1(EnpGEXjDjRln90m5nd0A{`lZzXwPRs zj3dpSAKeFE$-25VKazP&l)L*nw+QdEGA{%#vn!5I;5RMVe=^LaN60a_^#TTOM$REN zM6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=M4Z1l6^yyy;H;3zb_QZ|R+83=yj{K%WP zbSSB^FNFHn#};Kqc=|VQd<4@zUmun9JHL~S@Mb~;@%_Zi-y9+*&M|izoq4`nD0 z&AYC&0G}jKJvnRfvE3hD|1dXVKuWE|Sw!G0dr;KXm?#SMeaZsuuvA_tT8iw%&C%Vi z^r(0Cgs`i4N&D|+Jyevu4_YzXvZU^m)8mVr~=1<_J?fl&RZ z2z*R_KW3~HCAB+*!QnykN}qVmIg$axgQ*J;+(Zb#;n?9H)1_Kq6p3ap!VD-7+Y z_v}AM;`ZFy)e%4BvBAlpGVDvP%=sYvf*7a?a{l#0PFR<>92g1smMLGEuWQ|ZK11R5 zR{cqAijk~okF$VP!esQsS#q*GT^xL=YgzvF7O@V_Y>?2104W!fLHV{3&w^y`ukRU8 zfzOgh=64ZubcwTtO8JtAJTxg-Rw3}B)G>=r>ZgYp6aQTexM8uIcnjw?`}DZ2!_`O| z^$<~%Zgh4^W1y9CHf^D;`+%e)9FA?<%TjqB6%ag(*g^^kA- zFzCMR(!$&fQm^q7F;<)frk4k5Ig}pL*s9GBJEHzrE}r2q1hx- z`-GM+Ci|(TpxISDB7Qn@Z@>=ee_{j78%)VA2AX=zZR_LntcVN^Cbw%cMe~E>mA zRzp`NELraK-}6Nt#fW65ET0{rfOI&dPjJuwNFIN^rRUpbU{VO0XPRLu1~QlUnvxcj zBhBg=z{~$Bj73E9rR?KLUomzk%tcW{4%`6x^b_^W1`xm->iqTcL$tc`J39>_B!v@! zIC6MU94fmT70EblHVrmyMra+N}k^c_1^6E33|CYFO0tmqM@2fdB~ zzK!W23-UJn#g2gN%R=5W;0pnG{OyX4hSao#NLff3zFoUkuCh_^ZExLt{*&BGF~}gr zEfz!pyPsxWHlbnJ3HN_w_bN*c`X$57eS`7enz(6{!H53KY8Mxg5v~^e Date: Wed, 21 Jul 2021 16:00:00 -0230 Subject: [PATCH 4/5] Ensure send slice gas loading state is set to false upon gas estimation error (#11581) --- ui/ducks/send/send.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/ducks/send/send.js b/ui/ducks/send/send.js index b10f5fa29..33b20cb30 100644 --- a/ui/ducks/send/send.js +++ b/ui/ducks/send/send.js @@ -1037,6 +1037,11 @@ const slice = createSlice({ }); } }) + .addCase(computeEstimatedGasLimit.rejected, (state) => { + // If gas estimation fails, we should set the loading state to false, + // because it is no longer loading + state.gas.isGasEstimateLoading = false; + }) .addCase(SET_BASIC_GAS_ESTIMATE_DATA, (state, action) => { // When we receive a new gasPrice via the gas duck we need to update // the gasPrice in our slice. We call into the caseReducer From fb26c48234129fb6ef49480f4440efca84634803 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Wed, 21 Jul 2021 16:46:50 -0230 Subject: [PATCH 5/5] Update changelog for Version-v9.8.2 (#11567) * Update changelog for Version-v9.8.2 * update changelog --- CHANGELOG.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 585915031..2c06c88bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,16 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [9.8.2] -### Uncategorized -- Version v9.8.1 RC ([#11517](https://github.com/MetaMask/metamask-extension/pull/11517)) -- Updating CHANGELOG.md -- Retrieve state after async action before updating state in _setSwapsQuoteRefreshTime ([#11538](https://github.com/MetaMask/metamask-extension/pull/11538)) -- Update CHANGELOG.md header -- Updating changelog for 9.8.1 -- Version v9.8.1 -- moving some properties to identifiable payload ([#11506](https://github.com/MetaMask/metamask-extension/pull/11506)) -- Converting gas params for tx metrics to decimal GWEI ([#11482](https://github.com/MetaMask/metamask-extension/pull/11482)) -- Using current time in place of block timestamp for completion time metric ([#11483](https://github.com/MetaMask/metamask-extension/pull/11483)) +### Changed +- [1156511545](https://github.com/MetaMask/metamask-extension/pull/11545): Allow MetaMask Swaps to support Polygon network + +### Fixed +- [11565](https://github.com/MetaMask/metamask-extension/pull/11565): Fix gas limit estimation for some tokens on custom networks +- [11581](https://github.com/MetaMask/metamask-extension/pull/11581): Fixed bug that resulted in sends to some contracts being disabled. ## [9.8.1] ### Changed