Skip to content

Commit

Permalink
Fixed inconsistent log format in WebSocketProvider (ethers-io#795).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 24, 2020
1 parent d07ed8f commit 54ba2a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src.ts/websocket-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ export class WebSocketProvider extends JsonRpcProvider {
});
break;

case "filter": {
case "filter":
this._subscribe(event.tag, [ "logs", this._getFilter(event.filter) ], (result: any) => {
this.emit(event.filter, result);
if (result.removed == null) { result.removed = false; }
this.emit(event.filter, this.formatter.filterLog(result));
});
break;
}

case "tx": {
const emitReceipt = (event: Event) => {
Expand Down

0 comments on commit 54ba2a6

Please sign in to comment.