diff --git a/CHANGELOG.md b/CHANGELOG.md index 0beaab857..fe938d84f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [9.6.1] +### Fixed +- [#11309](https://github.com/MetaMask/metamask-extension/pull/11309): Fixed signTypeData parameter validation issue + ## [9.6.0] ### Added - [#10905](https://github.com/MetaMask/metamask-extension/pull/10905): Implemented basic switchEthereumChain feature @@ -2297,7 +2301,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.6.0...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v9.6.1...HEAD +[9.6.1]: https://github.com/MetaMask/metamask-extension/compare/v9.6.0...v9.6.1 [9.6.0]: https://github.com/MetaMask/metamask-extension/compare/v9.5.9...v9.6.0 [9.5.9]: https://github.com/MetaMask/metamask-extension/compare/v9.5.8...v9.5.9 [9.5.8]: https://github.com/MetaMask/metamask-extension/compare/v9.5.7...v9.5.8 diff --git a/app/scripts/lib/typed-message-manager.js b/app/scripts/lib/typed-message-manager.js index 8e205520b..33bc80dd9 100644 --- a/app/scripts/lib/typed-message-manager.js +++ b/app/scripts/lib/typed-message-manager.js @@ -1,5 +1,5 @@ import EventEmitter from 'events'; -import { strict as assert } from 'assert'; +import assert from 'assert'; import { ObservableStore } from '@metamask/obs-store'; import { ethErrors } from 'eth-rpc-errors'; import { typedSignatureHash, TYPED_MESSAGE_SCHEMA } from 'eth-sig-util'; @@ -177,7 +177,7 @@ export default class TypedMessageManager extends EventEmitter { break; case 'V3': case 'V4': { - assert.equal( + assert.strictEqual( typeof params.data, 'string', '"params.data" must be a string.', @@ -191,7 +191,7 @@ export default class TypedMessageManager extends EventEmitter { data.primaryType in data.types, `Primary type of "${data.primaryType}" has no type definition.`, ); - assert.equal( + assert.strictEqual( validation.errors.length, 0, 'Signing data must conform to EIP-712 schema. See https://git.io/fNtcx.', diff --git a/package.json b/package.json index 6d51d1787..3a2c01b76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-crx", - "version": "9.6.0", + "version": "9.6.1", "private": true, "repository": { "type": "git",