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

Merge pull request #3623 from MetaMask/i#3554

new-ui - dont exclude `txParams.data` when editing and updating txParams
This commit is contained in:
kumavis 2018-03-20 10:44:48 -07:00 committed by GitHub
commit 5d316d9a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -578,9 +578,11 @@ SendTransactionScreen.prototype.getEditedTx = function () {
data, data,
}) })
} else { } else {
const data = unapprovedTxs[editingTransactionId].txParams.data
Object.assign(editingTx.txParams, { Object.assign(editingTx.txParams, {
value: ethUtil.addHexPrefix(amount), value: ethUtil.addHexPrefix(amount),
to: ethUtil.addHexPrefix(to), to: ethUtil.addHexPrefix(to),
data,
}) })
} }