Skip to content

Commit 93af87c

Browse files
committedJul 24, 2023
Allow arrays of address for indexed filter topics (#4259).
1 parent fa3a883 commit 93af87c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src.ts/contract/contract.ts

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ class PreparedTopicFilter implements DeferredTopicFilter {
8888

8989
return param.walkAsync(args[index], (type, value) => {
9090
if (type === "address") {
91+
if (Array.isArray(value)) {
92+
return Promise.all(value.map((v) => resolveAddress(v, resolver)));
93+
}
9194
return resolveAddress(value, resolver);
9295
}
9396
return value;

0 commit comments

Comments
 (0)
Please sign in to comment.