Merge pull request #1850 from MetaMask/stack

remove stack from txs
feature/default_network_editable
Kevin Serrano 7 years ago committed by GitHub
commit 15bcbb4941
  1. 3
      app/scripts/controllers/transactions.js

@ -5,7 +5,6 @@ const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util') const ethUtil = require('ethereumjs-util')
const EthQuery = require('ethjs-query') const EthQuery = require('ethjs-query')
const TxProviderUtil = require('../lib/tx-utils') const TxProviderUtil = require('../lib/tx-utils')
const getStack = require('../lib/util').getStack
const createId = require('../lib/random-id') const createId = require('../lib/random-id')
const NonceTracker = require('../lib/nonce-tracker') const NonceTracker = require('../lib/nonce-tracker')
@ -105,8 +104,6 @@ module.exports = class TransactionController extends EventEmitter {
const txMetaForHistory = clone(txMeta) const txMetaForHistory = clone(txMeta)
// dont include previous history in this snapshot // dont include previous history in this snapshot
delete txMetaForHistory.history delete txMetaForHistory.history
// add stack to help understand why tx was updated
txMetaForHistory.stack = getStack()
// add snapshot to tx history // add snapshot to tx history
if (!txMeta.history) txMeta.history = [] if (!txMeta.history) txMeta.history = []
txMeta.history.push(txMetaForHistory) txMeta.history.push(txMetaForHistory)

Loading…
Cancel
Save