Skip to content

Commit

Permalink
Merge pull request #127 from blocknative/release/3.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorjdawson authored May 20, 2021
2 parents c104e95 + 14799e1 commit 5c03ede
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bnc-sdk",
"version": "3.3.3",
"version": "3.3.4",
"description": "SDK to connect to the blocknative backend via a websocket connection",
"keywords": [
"ethereum",
Expand Down
10 changes: 5 additions & 5 deletions src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5c03ede

Please sign in to comment.