fix: return only event data (#39)

This commit is contained in:
Richard Ramos 2019-10-01 16:27:34 -04:00 committed by GitHub
parent afe4b3c4b3
commit 7666d6f6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ class EventSyncer {
// TODO: test reorgs
sub.next(eventData);
sub.next({blockNumber: e.blockNumber, ...e.returnValues});
if(e.removed){
this.db.deleteEvent(eventKey, id);
return;