Clone transaction while editing instead of mutating object from state.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent 9ced63584b
commit e7e1b7a951
  1. 7
      ui/app/send-v2.js

@ -566,13 +566,14 @@ SendTransactionScreen.prototype.getEditedTx = function () {
unapprovedTxs,
} = this.props
const editingTx = unapprovedTxs[editingTransactionId]
editingTx.txParams = {
const editingTx = {
...unapprovedTxs[editingTransactionId],
txParams: {
from: ethUtil.addHexPrefix(from),
gas: ethUtil.addHexPrefix(gas),
gasPrice: ethUtil.addHexPrefix(gasPrice),
}
}
if (selectedToken) {
const data = TOKEN_TRANSFER_FUNCTION_SIGNATURE + Array.prototype.map.call(

Loading…
Cancel
Save