Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
digiwand committed Jan 17, 2025
1 parent 16c3f57 commit 02a4568
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import {
typedSignV1ConfirmationState,
} from '../../../../../../util/test/confirm-data-helpers';
import SignatureBlockaidBanner from './index';
import { MessageParamsTyped } from '@metamask/signature-controller';
import { Hex } from '@metamask/utils';

jest.mock('react-native-gzip', () => ({
deflate: (str: string) => str,
Expand Down Expand Up @@ -51,23 +49,6 @@ const typedSignV1ConfirmationStateWithBlockaidResponse = {
},
},
},
SignatureController: {
signatureRequests: {
'7e62bcb1-a4e9-11ef-9b51-ddf21c91a998': {
chainId: '0x1' as Hex,
messageParams: {
...typedSignApproval.requestData,
} as MessageParamsTyped,
},
},
},
RemoteFeatureFlagController: {
remoteFeatureFlags: {
confirmation_redesign: {
signatures: true,
},
},
},
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const SignatureBlockaidBanner = () => {
),
external_link_clicked: 'security_alert_support_link',
};

trackEvent(
createEventBuilder(MetaMetricsEvents.SIGNATURE_REQUESTED)
.addProperties(analyticsParams)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import ActionView, { ConfirmButtonState } from '../../../../UI/ActionView';
import QRSigningDetails from '../../../../UI/QRHardware/QRSigningDetails';
import withQRHardwareAwareness from '../../../../UI/QRHardware/withQRHardwareAwareness';
import WebsiteIcon from '../../../../UI/WebsiteIcon';
import { getSignatureDecodingEventProps } from '../../utils/signatureMetrics';
import BlockaidBanner from '../BlockaidBanner/BlockaidBanner';
import { ResultType } from '../BlockaidBanner/BlockaidBanner.types';

Expand Down Expand Up @@ -304,7 +303,6 @@ class SignatureRequest extends PureComponent {

onContactUsClicked = () => {
const { fromAddress, type } = this.props;

const analyticsParams = {
...getAnalyticsParams(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,6 @@ class TypedSign extends PureComponent {
metrics,
} = this.props;

<<<<<<< Updated upstream
const eventProps = {
...getAnalyticsParams(messageParams, 'typed_sign'),
...getSignatureDecodingEventProps(messageParams),
};

=======
>>>>>>> Stashed changes
metrics.trackEvent(
MetricsEventBuilder.createEventBuilder(
MetaMetricsEvents.SIGNATURE_REQUESTED,
Expand Down

0 comments on commit 02a4568

Please sign in to comment.