aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-03-08 02:48:14 +0800
committerGitHub <noreply@github.com>2018-03-08 02:48:14 +0800
commitbd67deae13d98d2d49c18a1f7494a33eec3e696e (patch)
tree53753bd04e6c9646c594327967b136af7a693f9f
parent5ebdb215ae37d62bd1757c17b58ce08fb833ff8c (diff)
parentcad5f5f0009713a1101194d964af7a1620ea158c (diff)
downloadtangerine-wallet-browser-bd67deae13d98d2d49c18a1f7494a33eec3e696e.tar
tangerine-wallet-browser-bd67deae13d98d2d49c18a1f7494a33eec3e696e.tar.gz
tangerine-wallet-browser-bd67deae13d98d2d49c18a1f7494a33eec3e696e.tar.bz2
tangerine-wallet-browser-bd67deae13d98d2d49c18a1f7494a33eec3e696e.tar.lz
tangerine-wallet-browser-bd67deae13d98d2d49c18a1f7494a33eec3e696e.tar.xz
tangerine-wallet-browser-bd67deae13d98d2d49c18a1f7494a33eec3e696e.tar.zst
tangerine-wallet-browser-bd67deae13d98d2d49c18a1f7494a33eec3e696e.zip
Merge pull request #3460 from trigun0x2/master
fix typo in transaction.js
-rw-r--r--app/scripts/controllers/transactions.js4
-rw-r--r--app/scripts/lib/tx-state-manager.js2
-rw-r--r--test/unit/message-manager-test.js4
-rw-r--r--test/unit/tx-state-manager-test.js4
4 files changed, 7 insertions, 7 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index ef5578d5a..9c2ca0dc8 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -3,7 +3,7 @@ const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const Transaction = require('ethereumjs-tx')
const EthQuery = require('ethjs-query')
-const TransactionStateManger = require('../lib/tx-state-manager')
+const TransactionStateManager = require('../lib/tx-state-manager')
const TxGasUtil = require('../lib/tx-gas-utils')
const PendingTransactionTracker = require('../lib/pending-tx-tracker')
const createId = require('../lib/random-id')
@@ -38,7 +38,7 @@ module.exports = class TransactionController extends EventEmitter {
this.query = new EthQuery(this.provider)
this.txGasUtil = new TxGasUtil(this.provider)
- this.txStateManager = new TransactionStateManger({
+ this.txStateManager = new TransactionStateManager({
initState: opts.initState,
txHistoryLimit: opts.txHistoryLimit,
getNetwork: this.getNetwork.bind(this),
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js
index 051efd247..2eb006380 100644
--- a/app/scripts/lib/tx-state-manager.js
+++ b/app/scripts/lib/tx-state-manager.js
@@ -4,7 +4,7 @@ const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const txStateHistoryHelper = require('./tx-state-history-helper')
-module.exports = class TransactionStateManger extends EventEmitter {
+module.exports = class TransactionStateManager extends EventEmitter {
constructor ({ initState, txHistoryLimit, getNetwork }) {
super()
diff --git a/test/unit/message-manager-test.js b/test/unit/message-manager-test.js
index 9b76241ed..5e7039841 100644
--- a/test/unit/message-manager-test.js
+++ b/test/unit/message-manager-test.js
@@ -1,11 +1,11 @@
const assert = require('assert')
-const MessageManger = require('../../app/scripts/lib/message-manager')
+const MessageManager = require('../../app/scripts/lib/message-manager')
describe('Message Manager', function () {
let messageManager
beforeEach(function () {
- messageManager = new MessageManger()
+ messageManager = new MessageManager()
})
describe('#getMsgList', function () {
diff --git a/test/unit/tx-state-manager-test.js b/test/unit/tx-state-manager-test.js
index 02dc52967..220bf501f 100644
--- a/test/unit/tx-state-manager-test.js
+++ b/test/unit/tx-state-manager-test.js
@@ -5,7 +5,7 @@ const TxStateManager = require('../../app/scripts/lib/tx-state-manager')
const txStateHistoryHelper = require('../../app/scripts/lib/tx-state-history-helper')
const noop = () => true
-describe('TransactionStateManger', function () {
+describe('TransactionStateManager', function () {
let txStateManager
const currentNetworkId = 42
const otherNetworkId = 2
@@ -281,4 +281,4 @@ describe('TransactionStateManger', function () {
})
})
-}) \ No newline at end of file
+})