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

Commit

Permalink
Merge pull request #66 from makerdao/web3-get-past-logs
Browse files Browse the repository at this point in the history
add a getPastLogs methods for web3service
  • Loading branch information
b-pmcg authored Nov 21, 2018
2 parents 387c54f + cf5c84b commit 370b6eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ npm-debug.log
ganache.out
yarn.lock
package-lock.json
.vscode/
7 changes: 6 additions & 1 deletion src/eth/Web3Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export default class Web3Service extends PrivateService {
return this._web3.currentProvider;
}

getPastLogs(options) {
return this._web3.eth.getPastLogs(options);
}

transactionSettings() {
return this._transactionSettings;
}
Expand Down Expand Up @@ -79,7 +83,8 @@ export default class Web3Service extends PrivateService {
'estimateGas',
'getBlock',
'sendTransaction',
'getBalance'
'getBalance',
'getPastLogs'
])
);
this._setStatusTimerDelay(settings.statusTimerDelay);
Expand Down

0 comments on commit 370b6eb

Please sign in to comment.