Fix prettier

This commit is contained in:
Fabio Berger
2018-09-21 14:53:25 +01:00
parent 31f6fc065f
commit 45dc2be083
3 changed files with 7 additions and 3 deletions

View File

@@ -439,7 +439,9 @@ export class Web3Wrapper {
*/
public async getLogsAsync(filter: FilterObject): Promise<LogEntry[]> {
if (!_.isUndefined(filter.blockHash) && (!_.isUndefined(filter.fromBlock) || !_.isUndefined(filter.toBlock))) {
throw new Error(`Cannot specify 'blockHash' as well as 'fromBlock'/'toBlock' in the filter supplied to 'getLogsAsync'`);
throw new Error(
`Cannot specify 'blockHash' as well as 'fromBlock'/'toBlock' in the filter supplied to 'getLogsAsync'`,
);
}
let fromBlock = filter.fromBlock;