Skip to content

Commit

Permalink
Fixed inconsistent log format in WebSocketProvider (#795).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 24, 2020
1 parent 6707754 commit 8e7751f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/providers/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 8e7751f

Please sign in to comment.