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

Identicon in send token show who you are sending to, not the token's identicon.

This commit is contained in:
Dan 2017-10-18 15:56:13 -02:30 committed by Chi Kei Chan
parent 89af385a35
commit 7362fb8dfc

View File

@ -145,14 +145,14 @@ ConfirmSendToken.prototype.getData = function () {
const { value } = params[0] || {} const { value } = params[0] || {}
const txMeta = this.gatherTxMeta() const txMeta = this.gatherTxMeta()
const txParams = txMeta.txParams || {} const txParams = txMeta.txParams || {}
return { return {
from: { from: {
address: txParams.from, address: txParams.from,
name: identities[txParams.from].name, name: identities[txParams.from].name,
}, },
to: { to: {
address: txParams.to, address: value,
name: identities[value] ? identities[value].name : 'New Recipient', name: identities[value] ? identities[value].name : 'New Recipient',
}, },
memo: txParams.memo || '', memo: txParams.memo || '',
@ -290,7 +290,7 @@ ConfirmSendToken.prototype.render = function () {
h( h(
Identicon, Identicon,
{ {
address: txParams.to, address: toAddress,
diameter: 60, diameter: 60,
}, },
), ),