Skip to content

Commit

Permalink
Merge pull request #124 from blocknative/release/3.3.3
Browse files Browse the repository at this point in the history
Release: 3.3.3
  • Loading branch information
taylorjdawson authored May 12, 2021
2 parents 97da682 + b43ff26 commit c104e95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.2",
"version": "3.3.3",
"description": "SDK to connect to the blocknative backend via a websocket connection",
"keywords": [
"ethereum",
Expand Down
2 changes: 1 addition & 1 deletion src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export function handleMessage(this: any, msg: { data: string }): void {
// handle change of hash in speedup and cancel events
if (eventCode === 'txSpeedUp' || eventCode === 'txCancel') {
this._watchedTransactions = this._watchedTransactions.map((tx: Tx) => {
if (tx.hash === transaction.replaceHash) {
if (tx.hash === newState.replaceHash) {
// reassign hash parameter in transaction queue to new hash or txid
tx.hash = transaction.hash || transaction.txid
}
Expand Down

0 comments on commit c104e95

Please sign in to comment.