diff options
Prefixes to addresses with 0x before sending.
Diffstat (limited to 'ui')
-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 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) { |