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
1998af4d41
commit
d62329fd0a
@ -1,6 +1,5 @@
|
|||||||
import { isValidAddress } from 'ethereumjs-util';
|
|
||||||
import contractMap from '@metamask/contract-metadata';
|
import contractMap from '@metamask/contract-metadata';
|
||||||
import { checksumAddress } from './util';
|
import { isValidAddress, checksumAddress } from './util';
|
||||||
|
|
||||||
let iconFactory;
|
let iconFactory;
|
||||||
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { isValidAddress } from 'ethereumjs-util';
|
import {
|
||||||
import { checkExistingAddresses } from '../../helpers/utils/util';
|
checkExistingAddresses,
|
||||||
|
isValidAddress,
|
||||||
|
} from '../../helpers/utils/util';
|
||||||
import { tokenInfoGetter } from '../../helpers/utils/token-util';
|
import { tokenInfoGetter } from '../../helpers/utils/token-util';
|
||||||
import { CONFIRM_ADD_TOKEN_ROUTE } from '../../helpers/constants/routes';
|
import { CONFIRM_ADD_TOKEN_ROUTE } from '../../helpers/constants/routes';
|
||||||
import TextField from '../../components/ui/text-field';
|
import TextField from '../../components/ui/text-field';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { isValidAddress } from 'ethereumjs-util';
|
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
|
import { isValidAddress } from '../../helpers/utils/util';
|
||||||
import {
|
import {
|
||||||
getAmountErrorObject,
|
getAmountErrorObject,
|
||||||
getGasFeeErrorObject,
|
getGasFeeErrorObject,
|
||||||
|
Loading…
Reference in New Issue
Block a user