aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-27 14:10:34 +0800
committerDan <danjm.com@gmail.com>2018-03-27 15:11:23 +0800
commit252d69228245f26f9ff2a2ba22db5b17074c009e (patch)
tree1a52a5e6e7f9b6f3aab416a66aa127f09c8bcad3
parentdac66b8ee90d5fc1d1736729d9a30b2d0bd04ca9 (diff)
downloadtangerine-wallet-browser-252d69228245f26f9ff2a2ba22db5b17074c009e.tar.gz
tangerine-wallet-browser-252d69228245f26f9ff2a2ba22db5b17074c009e.tar.zst
tangerine-wallet-browser-252d69228245f26f9ff2a2ba22db5b17074c009e.zip
Prefixes to addresses with 0x before sending.
-rw-r--r--ui/app/send-v2.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 620da73f8..67a470956 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -597,7 +597,7 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
event.preventDefault()
const {
from: {address: from},
- to,
+ to: _to,
amount,
gasLimit: gas,
gasPrice,
@@ -616,6 +616,8 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
return
}
+ const to = ethUtil.addHexPrefix(_to)
+
this.addToAddressBookIfNew(to, toNickname)
if (editingTransactionId) {