Inline networkStore to avoid having too many event listeners (#7854)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 2bd6ba4d35
commit 1728d9a5aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      test/unit/app/controllers/transactions/tx-controller-test.js

@ -19,7 +19,6 @@ import { createTestProviderTools, getTestAccounts } from '../../../../stub/provi
const noop = () => true const noop = () => true
const currentNetworkId = 42 const currentNetworkId = 42
const netStore = new ObservableStore(currentNetworkId)
describe('Transaction Controller', function () { describe('Transaction Controller', function () {
let txController, provider, providerResultStub, fromAccount let txController, provider, providerResultStub, fromAccount
@ -41,7 +40,7 @@ describe('Transaction Controller', function () {
getGasPrice: function () { getGasPrice: function () {
return '0xee6b2800' return '0xee6b2800'
}, },
networkStore: netStore, networkStore: new ObservableStore(currentNetworkId),
txHistoryLimit: 10, txHistoryLimit: 10,
blockTracker: blockTrackerStub, blockTracker: blockTrackerStub,
signTransaction: (ethTx) => new Promise((resolve) => { signTransaction: (ethTx) => new Promise((resolve) => {

Loading…
Cancel
Save