aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2018-11-17 02:34:08 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-11-17 02:34:08 +0800
commitce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2 (patch)
tree3e8752c040bf25095f99a73e0c9c38c8679c8016 /app/scripts
parentaf873129bb3beea559d69b52ce0f4f76dbacd199 (diff)
downloadtangerine-wallet-browser-ce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2.tar
tangerine-wallet-browser-ce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2.tar.gz
tangerine-wallet-browser-ce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2.tar.bz2
tangerine-wallet-browser-ce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2.tar.lz
tangerine-wallet-browser-ce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2.tar.xz
tangerine-wallet-browser-ce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2.tar.zst
tangerine-wallet-browser-ce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2.zip
Tx controller now uses safe event emitter (#5769)
* transactions - use safe-event-emitter over events * tests - pass a platform object on init with a noop showTransactionNotification * test - fix for tx-state-history-helper trying to reduce an empty array * deps - safe-event-emitter * lint
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/controllers/transactions/index.js2
-rw-r--r--app/scripts/controllers/transactions/pending-tx-tracker.js2
-rw-r--r--app/scripts/controllers/transactions/tx-state-manager.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js
index 9cf822d34..b44f66f14 100644
--- a/app/scripts/controllers/transactions/index.js
+++ b/app/scripts/controllers/transactions/index.js
@@ -1,4 +1,4 @@
-const EventEmitter = require('events')
+const EventEmitter = require('safe-event-emitter')
const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const Transaction = require('ethereumjs-tx')
diff --git a/app/scripts/controllers/transactions/pending-tx-tracker.js b/app/scripts/controllers/transactions/pending-tx-tracker.js
index 44a50a589..4bf40b1db 100644
--- a/app/scripts/controllers/transactions/pending-tx-tracker.js
+++ b/app/scripts/controllers/transactions/pending-tx-tracker.js
@@ -1,4 +1,4 @@
-const EventEmitter = require('events')
+const EventEmitter = require('safe-event-emitter')
const log = require('loglevel')
const EthQuery = require('ethjs-query')
diff --git a/app/scripts/controllers/transactions/tx-state-manager.js b/app/scripts/controllers/transactions/tx-state-manager.js
index 62319507d..2a7f207e1 100644
--- a/app/scripts/controllers/transactions/tx-state-manager.js
+++ b/app/scripts/controllers/transactions/tx-state-manager.js
@@ -1,5 +1,5 @@
const extend = require('xtend')
-const EventEmitter = require('events')
+const EventEmitter = require('safe-event-emitter')
const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const log = require('loglevel')