Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Pass along hashed rpcUrl during CustomNetworkAdded event #26203

Merged
merged 8 commits into from
Jul 30, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ import {
import { getLocalNetworkMenuRedesignFeatureFlag } from '../../../../helpers/utils/feature-flags';
import { ACTION_MODES } from '../../../../components/multichain/network-list-menu/network-list-menu';
import InfoTooltip from '../../../../components/ui/info-tooltip';
import { sha256 } from '../../../../../shared/modules/hash.utils';

/**
* Attempts to convert the given chainId to a decimal string, for display
Expand Down Expand Up @@ -968,6 +969,9 @@ const NetworksForm = ({
MetaMetricsNetworkEventSource.CustomNetworkForm,
token_symbol: ticker,
},
sensitiveProperties: {
rpcUrl: await sha256(rpcUrl),
},
});
if (networkMenuRedesign) {
dispatch(
Expand Down