diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-03-28 10:08:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 10:08:22 +0800 |
commit | cdf5183f87be2ece5b20afbdba37c606fb092c12 (patch) | |
tree | 6ee886aca7a5129efaedf467ebf2c85ffdde73e5 /ui/app | |
parent | c84f0ac7bcfe8b011e26668a262bdb83badc8619 (diff) | |
parent | 252d69228245f26f9ff2a2ba22db5b17074c009e (diff) | |
download | tangerine-wallet-browser-cdf5183f87be2ece5b20afbdba37c606fb092c12.tar tangerine-wallet-browser-cdf5183f87be2ece5b20afbdba37c606fb092c12.tar.gz tangerine-wallet-browser-cdf5183f87be2ece5b20afbdba37c606fb092c12.tar.bz2 tangerine-wallet-browser-cdf5183f87be2ece5b20afbdba37c606fb092c12.tar.lz tangerine-wallet-browser-cdf5183f87be2ece5b20afbdba37c606fb092c12.tar.xz tangerine-wallet-browser-cdf5183f87be2ece5b20afbdba37c606fb092c12.tar.zst tangerine-wallet-browser-cdf5183f87be2ece5b20afbdba37c606fb092c12.zip |
Merge pull request #3742 from danjm/i3705-prefix-to-address-with-0x
Prefixes to addresses with 0x before sending.
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/send-v2.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js index 220bdd1a9..52b8bb273 100644 --- a/ui/app/send-v2.js +++ b/ui/app/send-v2.js @@ -596,7 +596,7 @@ SendTransactionScreen.prototype.onSubmit = function (event) { event.preventDefault() const { from: {address: from}, - to, + to: _to, amount, gasLimit: gas, gasPrice, @@ -615,6 +615,8 @@ SendTransactionScreen.prototype.onSubmit = function (event) { return } + const to = ethUtil.addHexPrefix(_to) + this.addToAddressBookIfNew(to, toNickname) if (editingTransactionId) { |