Skip to content

Commit

Permalink
Fix address-less filter listening in Provider (#741).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Feb 27, 2020
1 parent 0ad94cd commit 64dccb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ export class BaseProvider extends Provider {
toBlock: blockNumber,
topics: topics
}
if (!filter.address) { delete filter.address; }
if (!filter.address || filter.address === "*") { delete filter.address; }

const runner = this.getLogs(filter).then((logs) => {
if (logs.length === 0) { return; }
logs.forEach((log: Log) => {
Expand Down

0 comments on commit 64dccb2

Please sign in to comment.