1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Merge pull request #3742 from danjm/i3705-prefix-to-address-with-0x

Prefixes to addresses with 0x before sending.
This commit is contained in:
kumavis 2018-03-27 19:08:22 -07:00 committed by GitHub
commit cdf5183f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -596,7 +596,7 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
event.preventDefault() event.preventDefault()
const { const {
from: {address: from}, from: {address: from},
to, to: _to,
amount, amount,
gasLimit: gas, gasLimit: gas,
gasPrice, gasPrice,
@ -615,6 +615,8 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
return return
} }
const to = ethUtil.addHexPrefix(_to)
this.addToAddressBookIfNew(to, toNickname) this.addToAddressBookIfNew(to, toNickname)
if (editingTransactionId) { if (editingTransactionId) {