Skip to content

Commit d6b95fc

Browse files
authored
Merge pull request #27206 from MetaMask/Version-v12.2.4
Version v12.2.4 RC
2 parents 086bb90 + a09d076 commit d6b95fc

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [12.2.4]
10+
### Fixed
11+
- Fixes token approvals for users who have the "Decode smart contracts" setting toggled off ([#27203](https://github.com/MetaMask/metamask-extension/pull/27203))
12+
913
## [12.2.3]
1014
### Fixed
1115
- Fixes dapps integrating with the cosmos chain that rely on setting the `verifyingContract` field of a signature to `"cosmos"`
@@ -5048,7 +5052,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
50485052
- Added the ability to restore accounts from seed words.
50495053

50505054

5051-
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.2.3...HEAD
5055+
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.2.4...HEAD
5056+
[12.2.4]: https://github.com/MetaMask/metamask-extension/compare/v12.2.3...v12.2.4
50525057
[12.2.3]: https://github.com/MetaMask/metamask-extension/compare/v12.2.2...v12.2.3
50535058
[12.2.2]: https://github.com/MetaMask/metamask-extension/compare/v12.2.1...v12.2.2
50545059
[12.2.1]: https://github.com/MetaMask/metamask-extension/compare/v12.2.0...v12.2.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metamask-crx",
3-
"version": "12.2.3",
3+
"version": "12.2.4",
44
"private": true,
55
"repository": {
66
"type": "git",

ui/pages/confirmations/components/confirm/info/hooks/useFourByte.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('useFourByte', () => {
3434
expect(result.current.params).toEqual([]);
3535
});
3636

37-
it('returns undefined if resolution is turned off', () => {
37+
it('returns empty object if resolution is turned off', () => {
3838
const currentConfirmation = genUnapprovedContractInteractionConfirmation({
3939
address: CONTRACT_INTERACTION_SENDER_ADDRESS,
4040
txData: depositHexData,
@@ -54,7 +54,7 @@ describe('useFourByte', () => {
5454
},
5555
);
5656

57-
expect(result.current).toBeUndefined();
57+
expect(result.current).toEqual({});
5858
});
5959

6060
it("returns undefined if it's not known even if resolution is enabled", () => {
@@ -75,6 +75,6 @@ describe('useFourByte', () => {
7575
},
7676
);
7777

78-
expect(result.current).toBeUndefined();
78+
expect(result.current).toEqual({});
7979
});
8080
});

ui/pages/confirmations/components/confirm/info/shared/transaction-details/transaction-details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const MethodDataRow = () => {
7070

7171
const methodData = useFourByte(currentConfirmation);
7272

73-
if (!methodData) {
73+
if (!methodData?.name) {
7474
return null;
7575
}
7676

ui/selectors/selectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ export function getKnownMethodData(state, data) {
12361236
const fourBytePrefix = prefixedData.slice(0, 10);
12371237
const { knownMethodData, use4ByteResolution } = state.metamask;
12381238
// If 4byte setting is off, we do not want to return the knownMethodData
1239-
return use4ByteResolution ? knownMethodData?.[fourBytePrefix] : undefined;
1239+
return use4ByteResolution ? knownMethodData?.[fourBytePrefix] ?? {} : {};
12401240
}
12411241

12421242
export function getFeatureFlags(state) {

0 commit comments

Comments
 (0)