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:
parent
ad399648fb
commit
9a8254deb6
@ -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';
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user