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:
parent
1caab93c07
commit
8e9df0457b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user