diff options
Diffstat (limited to 'packages/0x.js/test/event_watcher_test.ts')
-rw-r--r-- | packages/0x.js/test/event_watcher_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/0x.js/test/event_watcher_test.ts b/packages/0x.js/test/event_watcher_test.ts index 269cd5bdb..40ffcc2f6 100644 --- a/packages/0x.js/test/event_watcher_test.ts +++ b/packages/0x.js/test/event_watcher_test.ts @@ -5,7 +5,6 @@ import * as chai from 'chai'; import * as _ from 'lodash'; import 'mocha'; import * as Sinon from 'sinon'; -import * as Web3 from 'web3'; import { LogEvent } from '../src'; import { EventWatcher } from '../src/order_watcher/event_watcher'; @@ -13,7 +12,7 @@ import { DoneCallback } from '../src/types'; import { chaiSetup } from './utils/chai_setup'; import { reportNodeCallbackErrors } from './utils/report_callback_errors'; -import { web3 } from './utils/web3_wrapper'; +import { provider } from './utils/web3_wrapper'; chaiSetup.configure(); const expect = chai.expect; @@ -54,7 +53,7 @@ describe('EventWatcher', () => { }; before(async () => { const pollingIntervalMs = 10; - web3Wrapper = new Web3Wrapper(web3.currentProvider); + web3Wrapper = new Web3Wrapper(provider); eventWatcher = new EventWatcher(web3Wrapper, pollingIntervalMs); }); afterEach(() => { |