Reduce nesting
This commit is contained in:
@@ -63,7 +63,9 @@ export class ContractWrapper {
|
||||
private _getTopicsForIndexedArgs(abi: Web3.EventAbi, indexFilterValues: IndexedFilterValues): Array<string|null> {
|
||||
const topics: Array<string|null> = [];
|
||||
for (const eventInput of abi.inputs) {
|
||||
if (eventInput.indexed) {
|
||||
if (!eventInput.indexed) {
|
||||
continue;
|
||||
}
|
||||
if (_.isUndefined(indexFilterValues[eventInput.name])) {
|
||||
topics.push(null);
|
||||
} else {
|
||||
@@ -74,7 +76,6 @@ export class ContractWrapper {
|
||||
topics.push(topic);
|
||||
}
|
||||
}
|
||||
}
|
||||
return topics;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user