aboutsummaryrefslogtreecommitdiffstats
path: root/test/event_watcher_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 07:10:47 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commit84c965d459b948eb03cb8a70a66663bd7b35f463 (patch)
treefbcb47a43d4b029c2f1a46644eb64ca1d75f5921 /test/event_watcher_test.ts
parent22cd6989a0217f2a49e59ce64bcc69b2c238aba4 (diff)
downloaddexon-0x-contracts-84c965d459b948eb03cb8a70a66663bd7b35f463.tar.gz
dexon-0x-contracts-84c965d459b948eb03cb8a70a66663bd7b35f463.tar.zst
dexon-0x-contracts-84c965d459b948eb03cb8a70a66663bd7b35f463.zip
Remove blockStore and default to numConfirmations === 0
Diffstat (limited to 'test/event_watcher_test.ts')
-rw-r--r--test/event_watcher_test.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/event_watcher_test.ts b/test/event_watcher_test.ts
index 2673f978b..b4164fe63 100644
--- a/test/event_watcher_test.ts
+++ b/test/event_watcher_test.ts
@@ -8,7 +8,6 @@ import {chaiSetup} from './utils/chai_setup';
import {web3Factory} from './utils/web3_factory';
import {Web3Wrapper} from '../src/web3_wrapper';
import {EventWatcher} from '../src/order_watcher/event_watcher';
-import {BlockStore} from '../src/stores/block_store';
import {
ZeroEx,
LogEvent,
@@ -24,7 +23,6 @@ describe('EventWatcher', () => {
let stubs: Sinon.SinonStub[] = [];
let eventWatcher: EventWatcher;
let web3Wrapper: Web3Wrapper;
- let blockStore: BlockStore;
const numConfirmations = 0;
const logA: Web3.LogEntry = {
address: '0x71d271f8b14adef568f8f28f1587ce7271ac4ca5',
@@ -60,8 +58,7 @@ describe('EventWatcher', () => {
web3 = web3Factory.create();
const pollingIntervalMs = 10;
web3Wrapper = new Web3Wrapper(web3.currentProvider);
- blockStore = new BlockStore(numConfirmations);
- eventWatcher = new EventWatcher(web3Wrapper, blockStore, pollingIntervalMs);
+ eventWatcher = new EventWatcher(web3Wrapper, pollingIntervalMs);
});
afterEach(() => {
// clean up any stubs after the test has completed