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 GitHub
parent 1998af4d41
commit d62329fd0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -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';

View File

@ -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,