diff options
author | bakaoh <tatattai@gmail.com> | 2018-10-10 21:20:37 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-10-10 21:20:37 +0800 |
commit | 63c61c52eb3179816c330f4f6342f1142fb0009a (patch) | |
tree | e13cffd489ed4b90df03046be0c2567d3991cf16 /ui/app/components/send | |
parent | 999a599a78ce742a209d37bf831b89a96e6cc3e5 (diff) | |
download | tangerine-wallet-browser-63c61c52eb3179816c330f4f6342f1142fb0009a.tar tangerine-wallet-browser-63c61c52eb3179816c330f4f6342f1142fb0009a.tar.gz tangerine-wallet-browser-63c61c52eb3179816c330f4f6342f1142fb0009a.tar.bz2 tangerine-wallet-browser-63c61c52eb3179816c330f4f6342f1142fb0009a.tar.lz tangerine-wallet-browser-63c61c52eb3179816c330f4f6342f1142fb0009a.tar.xz tangerine-wallet-browser-63c61c52eb3179816c330f4f6342f1142fb0009a.tar.zst tangerine-wallet-browser-63c61c52eb3179816c330f4f6342f1142fb0009a.zip |
Make all addresses EIP-55 compliant (#5379)
* Make all addresses EIP-55 compliant
* Checksum autocompleted address but not during input
Diffstat (limited to 'ui/app/components/send')
-rw-r--r-- | ui/app/components/send/to-autocomplete/to-autocomplete.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/send/to-autocomplete/to-autocomplete.js b/ui/app/components/send/to-autocomplete/to-autocomplete.js index 49ebf49d9..39d15dfa7 100644 --- a/ui/app/components/send/to-autocomplete/to-autocomplete.js +++ b/ui/app/components/send/to-autocomplete/to-autocomplete.js @@ -5,6 +5,7 @@ const inherits = require('util').inherits const AccountListItem = require('../account-list-item/account-list-item.component').default const connect = require('react-redux').connect const Tooltip = require('../../tooltip') +const checksumAddress = require('../../../util').checksumAddress ToAutoComplete.contextTypes = { t: PropTypes.func, @@ -48,7 +49,7 @@ ToAutoComplete.prototype.renderDropdown = function () { account, className: 'account-list-item__dropdown', handleClick: () => { - onChange(account.address) + onChange(checksumAddress(account.address)) closeDropdown() }, icon: this.getListItemIcon(account.address, to), |