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:
parent
2bd6ba4d35
commit
1728d9a5aa
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user