1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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

This commit is contained in:
Whymarrh Whitby 2020-01-17 18:28:27 -03:30 committed by GitHub
parent 2bd6ba4d35
commit 1728d9a5aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -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) => {