aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-10-03 04:45:47 +0800
committerkumavis <aaron@kumavis.me>2017-10-03 04:45:47 +0800
commit167ad729fdd4fa23a2ec66e648652f3379a2bb51 (patch)
tree01e7afaf1ae3e374a1dd27e8ee564f3370d4463b /app/scripts
parentdf59ef9942a950a1c5437c69b1af4111f8c07817 (diff)
parente08a727d449fb35a1cc5eeed8510e615f8fecb20 (diff)
downloadtangerine-wallet-browser-167ad729fdd4fa23a2ec66e648652f3379a2bb51.tar
tangerine-wallet-browser-167ad729fdd4fa23a2ec66e648652f3379a2bb51.tar.gz
tangerine-wallet-browser-167ad729fdd4fa23a2ec66e648652f3379a2bb51.tar.bz2
tangerine-wallet-browser-167ad729fdd4fa23a2ec66e648652f3379a2bb51.tar.lz
tangerine-wallet-browser-167ad729fdd4fa23a2ec66e648652f3379a2bb51.tar.xz
tangerine-wallet-browser-167ad729fdd4fa23a2ec66e648652f3379a2bb51.tar.zst
tangerine-wallet-browser-167ad729fdd4fa23a2ec66e648652f3379a2bb51.zip
Merge branch 'history-notes' of github.com:MetaMask/metamask-extension into history-notes
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/tx-state-history-helper.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/tx-state-history-helper.js b/app/scripts/lib/tx-state-history-helper.js
index ecf0d076e..db6e3bc9f 100644
--- a/app/scripts/lib/tx-state-history-helper.js
+++ b/app/scripts/lib/tx-state-history-helper.js
@@ -27,7 +27,8 @@ function generateHistoryEntry(previousState, newState, note) {
return entry
}
-function replayHistory(shortHistory) {
+function replayHistory(_shortHistory) {
+ const shortHistory = clone(_shortHistory)
return shortHistory.reduce((val, entry) => jsonDiffer.applyPatch(val, entry).newDocument)
}