Skip to content

Commit

Permalink
Merge pull request #27434 from MetaMask/Version-v12.3.1
Browse files Browse the repository at this point in the history
Version v12.3.1 RC
  • Loading branch information
Gudahtt authored Sep 30, 2024
2 parents 63a50cc + 2ede67e commit 762b968
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [12.3.1]
### Fixed
- Fix duplicate network validation ([#27463](https://github.com/MetaMask/metamask-extension/pull/27463))
- Fix notification metrics ([#27435](https://github.com/MetaMask/metamask-extension/pull/27435))
- Fix transaction metrics ([#27457](https://github.com/MetaMask/metamask-extension/pull/27457))

## [12.3.0]
### Added
- Added the ability to name accounts during the snap account creation flow ([#25191](https://github.com/MetaMask/metamask-extension/pull/25191))
Expand Down Expand Up @@ -5106,7 +5112,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
- Added the ability to restore accounts from seed words.


[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.3.0...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.3.1...HEAD
[12.3.1]: https://github.com/MetaMask/metamask-extension/compare/v12.3.0...v12.3.1
[12.3.0]: https://github.com/MetaMask/metamask-extension/compare/v12.2.4...v12.3.0
[12.2.4]: https://github.com/MetaMask/metamask-extension/compare/v12.2.3...v12.2.4
[12.2.3]: https://github.com/MetaMask/metamask-extension/compare/v12.2.2...v12.2.3
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/lib/transaction/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,10 @@ async function buildEventFragmentProperties({

let contractMethodName;
if (transactionMeta.txParams.data) {
const { name } = await transactionMetricsRequest.getMethodData(
const methodData = await transactionMetricsRequest.getMethodData(
transactionMeta.txParams.data,
);
contractMethodName = name;
contractMethodName = methodData?.name;
}

// TODO: Replace `any` with type
Expand Down
2 changes: 0 additions & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,8 +1488,6 @@ export default class MetamaskController extends EventEmitter {
notification_id: notification.id,
notification_type: notification.type,
chain_id: notification?.chain_id,
notification_is_read: notification.isRead,
click_type: 'push_notification',
},
});
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metamask-crx",
"version": "12.3.0",
"version": "12.3.1",
"private": true,
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion test/e2e/tests/metrics/nft-detection-metrics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ describe('Nft detection event @no-mmi', function () {
chain_id: '0x539',
environment_type: 'fullscreen',
is_profile_syncing_enabled: null,
is_signed_in: false,
});
assert.deepStrictEqual(events[2].properties, {
nft_autodetection_enabled: true,
Expand Down
1 change: 0 additions & 1 deletion test/e2e/tests/metrics/token-detection-metrics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ describe('Token detection event @no-mmi', function () {
chain_id: '0x539',
environment_type: 'fullscreen',
is_profile_syncing_enabled: null,
is_signed_in: false,
});
assert.deepStrictEqual(events[2].properties, {
token_detection_enabled: true,
Expand Down
1 change: 0 additions & 1 deletion test/e2e/tests/metrics/wallet-created.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ describe('Wallet Created Events @no-mmi', function () {
chain_id: '0x539',
environment_type: 'fullscreen',
is_profile_syncing_enabled: null,
is_signed_in: false,
});
},
);
Expand Down
1 change: 1 addition & 0 deletions ui/components/multichain/global-menu/global-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const GlobalMenu = ({ closeMenu, anchorElement, isOpen }) => {

if (shouldShowEnableModal) {
trackEvent({
category: MetaMetricsEventCategory.NotificationsActivationFlow,
event: MetaMetricsEventName.NotificationsActivated,
properties: {
action_type: 'started',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const NotificationDetailButton = ({
const onClick = () => {
trackEvent({
category: MetaMetricsEventCategory.NotificationInteraction,
event: MetaMetricsEventName.NotificationClicked,
event: MetaMetricsEventName.NotificationDetailClicked,
properties: {
notification_id: notification.id,
notification_type: notification.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
import { MetaMetricsContext } from '../../../contexts/metametrics';
import { useCreateSession } from '../../../hooks/metamask-notifications/useCreateSession';
import { selectIsProfileSyncingEnabled } from '../../../selectors/metamask-notifications/profile-syncing';
import { selectIsSignedIn } from '../../../selectors/metamask-notifications/authentication';

export default function CreationSuccessful() {
const history = useHistory();
Expand All @@ -37,8 +36,6 @@ export default function CreationSuccessful() {

const isProfileSyncingEnabled = useSelector(selectIsProfileSyncingEnabled);

const isSignedIn = useSelector(selectIsSignedIn);

return (
<div className="creation-successful" data-testid="creation-successful">
<Box textAlign={TextAlign.Center}>
Expand Down Expand Up @@ -118,7 +115,6 @@ export default function CreationSuccessful() {
event: MetaMetricsEventName.OnboardingWalletCreationComplete,
properties: {
method: firstTimeFlowType,
is_signed_in: isSignedIn,
is_profile_syncing_enabled: isProfileSyncingEnabled,
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ const NetworksForm = ({
}

if (
networkMenuRedesign &&
addNewNetwork &&
networksList.some(
(network) =>
Expand Down

0 comments on commit 762b968

Please sign in to comment.