fix: block number was missing on the event data

This commit is contained in:
Richard Ramos 2020-03-24 08:48:22 -04:00
parent 006a1e8f49
commit 2d1f4af61f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@embarklabs/subspace",
"version": "2.0.1",
"version": "2.0.2",
"description": "Library for Reactive Dapp Development with auto syncing and caching capabilities https://subspace.embarklabs.io",
"homepage": "https://subspace.embarklabs.io",
"author": "Status Research & Development GMBH",

View File

@ -116,7 +116,7 @@ class EventSyncer {
removed: event.removed
};
subscriber.next(eventData.returnValues);
subscriber.next({blockNumber: event.blockNumber, ...eventData.returnValues});
if (filterConditions && !!filterConditions.saveToDb) {
this.events.emit("updateDB", {eventKey, eventData});