Skip to content

Commit

Permalink
Inline networkStore to avoid having too many event listeners (#7854)
Browse files Browse the repository at this point in the history
  • Loading branch information
whymarrh authored Jan 17, 2020
1 parent 2bd6ba4 commit 1728d9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unit/app/controllers/transactions/tx-controller-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { createTestProviderTools, getTestAccounts } from '../../../../stub/provi

const noop = () => true
const currentNetworkId = 42
const netStore = new ObservableStore(currentNetworkId)

describe('Transaction Controller', function () {
let txController, provider, providerResultStub, fromAccount
Expand All @@ -41,7 +40,7 @@ describe('Transaction Controller', function () {
getGasPrice: function () {
return '0xee6b2800'
},
networkStore: netStore,
networkStore: new ObservableStore(currentNetworkId),
txHistoryLimit: 10,
blockTracker: blockTrackerStub,
signTransaction: (ethTx) => new Promise((resolve) => {
Expand Down

0 comments on commit 1728d9a

Please sign in to comment.