From 57155dda1a50a11a0bf9aa07a30ee8ac7ea5851d Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Thu, 25 Nov 2021 08:58:03 -0330 Subject: [PATCH] Sync develop with master (#12851) * Version v10.6.3 * Fix "BigNumber Error: times() number type has more than 15 significant digits:" (#12802) * Bump @metmamask/logo to v3.1.1 (#12822) * Update changelog for v10.6.3 * We shouldn't be changing decimal places as user type, we should do that on blur. (#12631) * We shouldn't be changing decimal places as user type, we should do that on blur. Signed-off-by: Akintayo A. Olusegun * Lint fixes. Signed-off-by: Akintayo A. Olusegun * Refactor code. Signed-off-by: Akintayo A. Olusegun * Linter fixes. Signed-off-by: Akintayo A. Olusegun * Convert token input to BigNumber to handle decimals. (#12773) * Fixes #12762 Adds a decimal length check for inputs and drops excess fractional part. Another edgecase not accounted for is when a token's decimal precision is 0 and attempting sending decimals will result in omitting the fractional part. * Change spies from sinon to jest and change onChange value to string. * Adjust * Remove sinon * Add test for issue case * DRY * Simplify logic by using BigNumber Co-authored-by: Dan Miller * Update changelog * Ensure that handleChange in token-input.component handles empty values (#12835) Co-authored-by: MetaMask Bot Co-authored-by: Daniel <80175477+dan437@users.noreply.github.com> Co-authored-by: Olusegun Akintayo Co-authored-by: Thomas Huang --- CHANGELOG.md | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f31e9855..5f6eaabe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [10.6.3] +### Fixed +- [##12822](https://github.com/MetaMask/metamask-extension/pull/#12822): Fix `replaceChildren` and `function.prototype.apply` errors that could make the app unusable on older browsers due to a bug in our logo component. +- [#61e0526d5](https://github.com/MetaMask/metamask-extension/pull/61e0526d5): Fix requesting of swaps quotes for token pairs that have highly precise exchange rates. +- [##12773](https://github.com/MetaMask/metamask-extension/pull/#12773): Prevent token input in send flow from adding arbitary trailing decimal values to input + ## [10.6.2] ### Fixed - [#12770](https://github.com/MetaMask/metamask-extension/pull/12770): Fixed display of best quote in swaps quotes modal @@ -2603,7 +2609,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/v10.6.2...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.6.3...HEAD +[10.6.3]: https://github.com/MetaMask/metamask-extension/compare/v10.6.2...v10.6.3 [10.6.2]: https://github.com/MetaMask/metamask-extension/compare/v10.6.1...v10.6.2 [10.6.1]: https://github.com/MetaMask/metamask-extension/compare/v10.6.0...v10.6.1 [10.6.0]: https://github.com/MetaMask/metamask-extension/compare/v10.5.2...v10.6.0 diff --git a/package.json b/package.json index ab8514860..2a7a90097 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-crx", - "version": "10.6.2", + "version": "10.6.3", "private": true, "repository": { "type": "git",