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

feature/default_network_editable
Dan J Miller 4 years ago committed by ryanml
parent ad399648fb
commit 9a8254deb6
  1. 6
      ui/app/pages/add-token/add-token.component.js
  2. 2
      ui/app/pages/send/send.component.js
  3. 3
      ui/lib/icon-factory.js

@ -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…
Cancel
Save