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

Use isValidAddress helper instead of ethereumJsUtil.isValidAddress, when appropriate (#11049)

This commit is contained in:
Dan J Miller 2021-05-11 16:53:50 -02:30 committed by ryanml
parent ad399648fb
commit 9a8254deb6
3 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,9 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { isValidAddress } from 'ethereumjs-util';
import { checkExistingAddresses } from '../../helpers/utils/util';
import {
checkExistingAddresses,
isValidAddress,
} from '../../helpers/utils/util';
import { tokenInfoGetter } from '../../helpers/utils/token-util';
import { CONFIRM_ADD_TOKEN_ROUTE } from '../../helpers/constants/routes';
import TextField from '../../components/ui/text-field';

View File

@ -1,7 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { isValidAddress } from 'ethereumjs-util';
import { debounce } from 'lodash';
import { isValidAddress } from '../../helpers/utils/util';
import {
getAmountErrorObject,
getGasFeeErrorObject,

View File

@ -1,6 +1,5 @@
import { isValidAddress } from 'ethereumjs-util';
import contractMap from '@metamask/contract-metadata';
import { checksumAddress } from '../app/helpers/utils/util';
import { isValidAddress, checksumAddress } from '../app/helpers/utils/util';
let iconFactory;