aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-15 10:15:36 +0800
committerkumavis <aaron@kumavis.me>2017-08-15 10:15:36 +0800
commit1af797b1b3a37d8fe00afbd0d84cb3349b8fd471 (patch)
treec608b208adb253cc8c0ba75dc588ecf00aa1196c /app
parentfec0f2ca5e4c2aabe657dfe0317365b06e7f665f (diff)
downloadtangerine-wallet-browser-1af797b1b3a37d8fe00afbd0d84cb3349b8fd471.tar
tangerine-wallet-browser-1af797b1b3a37d8fe00afbd0d84cb3349b8fd471.tar.gz
tangerine-wallet-browser-1af797b1b3a37d8fe00afbd0d84cb3349b8fd471.tar.bz2
tangerine-wallet-browser-1af797b1b3a37d8fe00afbd0d84cb3349b8fd471.tar.lz
tangerine-wallet-browser-1af797b1b3a37d8fe00afbd0d84cb3349b8fd471.tar.xz
tangerine-wallet-browser-1af797b1b3a37d8fe00afbd0d84cb3349b8fd471.tar.zst
tangerine-wallet-browser-1af797b1b3a37d8fe00afbd0d84cb3349b8fd471.zip
tx controller - tx state history various small fixes
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/transactions.js1
-rw-r--r--app/scripts/lib/tx-state-history-helper.js2
-rw-r--r--app/scripts/migrations/018.js2
3 files changed, 2 insertions, 3 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index 872d11b50..1bcee60ab 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -1,6 +1,5 @@
const EventEmitter = require('events')
const extend = require('xtend')
-const clone = require('clone')
const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const EthQuery = require('ethjs-query')
diff --git a/app/scripts/lib/tx-state-history-helper.js b/app/scripts/lib/tx-state-history-helper.js
index 87b9a1d63..304069d57 100644
--- a/app/scripts/lib/tx-state-history-helper.js
+++ b/app/scripts/lib/tx-state-history-helper.js
@@ -15,7 +15,7 @@ function migrateFromSnapshotsToDiffs(longHistory) {
// convert non-initial history entries into diffs
.map((entry, index) => {
if (index === 0) return entry
- return generateHistoryEntry(longHistory[index-1], entry)
+ return generateHistoryEntry(longHistory[index - 1], entry)
})
)
}
diff --git a/app/scripts/migrations/018.js b/app/scripts/migrations/018.js
index c8d2332ab..41e7de391 100644
--- a/app/scripts/migrations/018.js
+++ b/app/scripts/migrations/018.js
@@ -32,7 +32,7 @@ function transformState (state) {
const transactions = newState.TransactionController.transactions
newState.TransactionController.transactions = transactions.map((txMeta) => {
// no history: initialize
- if (!txMeta.history || tx.history.length === 0) {
+ if (!txMeta.history || txMeta.history.length === 0) {
const snapshot = txStateHistoryHelper.snapshotFromTxMeta(txMeta)
txMeta.history = [snapshot]
return txMeta