Skip to content

Commit

Permalink
Allow arrays of address for indexed filter topics (#4259).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 24, 2023
1 parent fa3a883 commit 93af87c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src.ts/contract/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ class PreparedTopicFilter implements DeferredTopicFilter {

return param.walkAsync(args[index], (type, value) => {
if (type === "address") {
if (Array.isArray(value)) {
return Promise.all(value.map((v) => resolveAddress(v, resolver)));
}
return resolveAddress(value, resolver);
}
return value;
Expand Down

0 comments on commit 93af87c

Please # to comment.