Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
pass config through createWatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
levity committed Nov 15, 2019
1 parent adda9c0 commit a738b01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/dai/src/eth/MulticallService.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ export default class MulticallService extends PublicService {
super(name, ['web3', 'smartContract']);
}

createWatcher() {
createWatcher(config) {
const { rpcUrl } = this.get('web3');
const multicallAddress = this.get('smartContract').getContractAddress(
'MULTICALL'
);
this._watcher = createWatcher([], { rpcUrl, multicallAddress });
this._watcher = createWatcher([], {
rpcUrl,
multicallAddress,
...config
});
}

disconnect() {
Expand Down

0 comments on commit a738b01

Please sign in to comment.