diff --git a/package.json b/package.json index 70ca861..384dd76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "3.3.3", + "version": "3.3.3-0.0.1", "description": "SDK to connect to the blocknative backend via a websocket connection", "keywords": [ "ethereum", diff --git a/src/messages.ts b/src/messages.ts index b94df8f..dd8109d 100644 --- a/src/messages.ts +++ b/src/messages.ts @@ -280,15 +280,15 @@ export function handleMessage(this: any, msg: { data: string }): void { const configuration = this._configurations.get(watchedAddress) - const configurationEmitterResult = - configuration && - configuration.emitter && - configuration.emitter.emit(newState) + const emitterResult = + configuration && configuration.emitter + ? configuration.emitter.emit(newState) || accountEmitterResult + : accountEmitterResult this._transactionHandlers.forEach((handler: TransactionHandler) => handler({ transaction: newState, - emitterResult: accountEmitterResult || configurationEmitterResult + emitterResult }) ) } else {