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

Merge pull request #3884 from danjm/i3874-send-eth-to-self

Allow from and to address to be the same in new-ui.
This commit is contained in:
Kevin Serrano 2018-04-05 00:51:10 -07:00 committed by GitHub
commit 54b84e2c3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') {
const { const {
updateSendTo, updateSendTo,
updateSendErrors, updateSendErrors,
from: {address: from},
} = this.props } = this.props
let toError = null let toError = null
@ -262,8 +261,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') {
toError = this.context.t('required') toError = this.context.t('required')
} else if (!isValidAddress(to)) { } else if (!isValidAddress(to)) {
toError = this.context.t('invalidAddressRecipient') toError = this.context.t('invalidAddressRecipient')
} else if (to === from) {
toError = this.context.t('fromToSame')
} }
updateSendTo(to, nickname) updateSendTo(to, nickname)