Fix address-less filter listening in Provider (#741).
This commit is contained in:
parent
0ad94cdf81
commit
64dccb275c
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user