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/account-dropdowns.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/account-dropdowns.js')
-rw-r--r-- | ui/app/components/account-dropdowns.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js index 03955e077..043008a36 100644 --- a/ui/app/components/account-dropdowns.js +++ b/ui/app/components/account-dropdowns.js @@ -7,8 +7,8 @@ const connect = require('react-redux').connect const Dropdown = require('./dropdown').Dropdown const DropdownMenuItem = require('./dropdown').DropdownMenuItem const Identicon = require('./identicon') -const ethUtil = require('ethereumjs-util') const copyToClipboard = require('copy-to-clipboard') +const { checksumAddress } = require('../util') class AccountDropdowns extends Component { constructor (props) { @@ -212,8 +212,7 @@ class AccountDropdowns extends Component { closeMenu: () => {}, onClick: () => { const { selected } = this.props - const checkSumAddress = selected && ethUtil.toChecksumAddress(selected) - copyToClipboard(checkSumAddress) + copyToClipboard(checksumAddress(selected)) }, }, this.context.t('copyAddress'), |