Merge jg-contract-subid into jr-fix-verification

This commit is contained in:
Jannis R 2016-12-15 18:12:45 +01:00
commit 7fdcc70825
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5

View File

@ -342,7 +342,8 @@ export default class Contract {
options: _options,
autoRemove,
callback,
filterId
filterId,
id: subscriptionId
};
if (skipInitFetch) {
@ -452,13 +453,13 @@ export default class Contract {
})
)
.then((logsArray) => {
logsArray.forEach((logs, subscriptionId) => {
logsArray.forEach((logs, index) => {
if (!logs || !logs.length) {
return;
}
try {
this._sendData(subscriptionId, null, this.parseEventLogs(logs));
this._sendData(subscriptions[index].id, null, this.parseEventLogs(logs));
} catch (error) {
console.error('_sendSubscriptionChanges', error);
}