diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/add-token.js | 1 | ||||
-rw-r--r-- | ui/app/send-v2.js | 10 | ||||
-rw-r--r-- | ui/app/util.js | 1 |
3 files changed, 8 insertions, 4 deletions
diff --git a/ui/app/add-token.js b/ui/app/add-token.js index a73874320..46564a5e5 100644 --- a/ui/app/add-token.js +++ b/ui/app/add-token.js @@ -360,6 +360,7 @@ AddTokenScreen.prototype.renderTabs = function () { h('div.add-token__info-box__copy', this.context.t('keepTrackTokens')), h('a.add-token__info-box__copy--blue', { href: 'http://metamask.helpscoutdocs.com/article/16-managing-erc20-tokens', + target: '_blank', }, this.context.t('learnMore')), ]), h('div.add-token__input-container', [ diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js index 0f2997fb2..094743ff0 100644 --- a/ui/app/send-v2.js +++ b/ui/app/send-v2.js @@ -254,7 +254,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') { const { updateSendTo, updateSendErrors, - from: {address: from}, } = this.props let toError = null @@ -262,8 +261,6 @@ SendTransactionScreen.prototype.handleToChange = function (to, nickname = '') { toError = this.context.t('required') } else if (!isValidAddress(to)) { toError = this.context.t('invalidAddressRecipient') - } else if (to === from) { - toError = this.context.t('fromToSame') } updateSendTo(to, nickname) @@ -579,12 +576,17 @@ SendTransactionScreen.prototype.getEditedTx = function () { data, }) } else { - const data = unapprovedTxs[editingTransactionId].txParams.data + const { data } = unapprovedTxs[editingTransactionId].txParams + Object.assign(editingTx.txParams, { value: ethUtil.addHexPrefix(amount), to: ethUtil.addHexPrefix(to), data, }) + + if (typeof editingTx.txParams.data === 'undefined') { + delete editingTx.txParams.data + } } return editingTx diff --git a/ui/app/util.js b/ui/app/util.js index 800ccb218..bbe2bb09e 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -271,6 +271,7 @@ function exportAsFile (filename, data) { window.navigator.msSaveBlob(blob, filename) } else { const elem = window.document.createElement('a') + elem.target = '_blank' elem.href = window.URL.createObjectURL(blob) elem.download = filename document.body.appendChild(elem) |