diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-04-19 02:43:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 02:43:38 +0800 |
commit | 40f0a40edfdb928f824f08ed0ba39a707825e2d3 (patch) | |
tree | 288a2aeab0beec8ec1b068bc29a906632962f7c8 /ui/app/components/tx-view.js | |
parent | 7e21fc2aa780ccb4ffb2f642156385db22c47a52 (diff) | |
parent | cce123c30e9562e01971edf9ae11b89cf91c7089 (diff) | |
download | tangerine-wallet-browser-40f0a40edfdb928f824f08ed0ba39a707825e2d3.tar tangerine-wallet-browser-40f0a40edfdb928f824f08ed0ba39a707825e2d3.tar.gz tangerine-wallet-browser-40f0a40edfdb928f824f08ed0ba39a707825e2d3.tar.bz2 tangerine-wallet-browser-40f0a40edfdb928f824f08ed0ba39a707825e2d3.tar.lz tangerine-wallet-browser-40f0a40edfdb928f824f08ed0ba39a707825e2d3.tar.xz tangerine-wallet-browser-40f0a40edfdb928f824f08ed0ba39a707825e2d3.tar.zst tangerine-wallet-browser-40f0a40edfdb928f824f08ed0ba39a707825e2d3.zip |
Merge pull request #3998 from MetaMask/i3988-checksummed-address
Show checksum addresses on UI
Diffstat (limited to 'ui/app/components/tx-view.js')
-rw-r--r-- | ui/app/components/tx-view.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index 80aac35c4..263f992c0 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -2,13 +2,13 @@ const Component = require('react').Component const PropTypes = require('prop-types') const connect = require('react-redux').connect const h = require('react-hyperscript') -const ethUtil = require('ethereumjs-util') const inherits = require('util').inherits const { withRouter } = require('react-router-dom') const { compose } = require('recompose') const actions = require('../actions') const selectors = require('../selectors') const { SEND_ROUTE } = require('../routes') +const { checksumAddress: toChecksumAddress } = require('../util') const BalanceComponent = require('./balance-component') const TxList = require('./tx-list') @@ -32,7 +32,7 @@ function mapStateToProps (state) { const network = state.metamask.network const selectedTokenAddress = state.metamask.selectedTokenAddress const selectedAddress = state.metamask.selectedAddress || Object.keys(accounts)[0] - const checksumAddress = selectedAddress && ethUtil.toChecksumAddress(selectedAddress) + const checksumAddress = toChecksumAddress(selectedAddress) const identity = identities[selectedAddress] return { |