Allow arrays of address for indexed filter topics (#4259).

This commit is contained in:
Richard Moore 2023-07-23 23:58:16 -04:00
parent fa3a883ff7
commit 93af87c447

View File

@ -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;