fix: block number was missing on the event data
This commit is contained in:
parent
006a1e8f49
commit
2d1f4af61f
|
@ -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",
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue