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

Commit

Permalink
add a getPastLogs methods for web3service
Browse files Browse the repository at this point in the history
  • Loading branch information
b-pmcg committed Nov 21, 2018
1 parent 387c54f commit cf5c84b
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 cf5c84b

Please sign in to comment.