1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

cast chainId to hex for metrics (#15332)

* cast chainId to hex for metrics

* Update ui/pages/settings/networks-tab/networks-form/networks-form.js

Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>

Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
This commit is contained in:
Brad Decker 2022-07-29 10:37:48 -05:00 committed by GitHub
parent 1caab93c07
commit 8e9df0457b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ import PropTypes from 'prop-types';
import validUrl from 'valid-url';
import log from 'loglevel';
import classnames from 'classnames';
import { addHexPrefix } from 'ethereumjs-util';
import { useI18nContext } from '../../../../hooks/useI18nContext';
import {
isPrefixedFormattedHexString,
@ -525,7 +526,7 @@ const NetworksForm = ({
url: rpcUrlOrigin,
},
properties: {
chain_id: chainId,
chain_id: addHexPrefix(chainId.toString(16)),
network_name: networkName,
network: rpcUrlOrigin,
symbol: ticker,