From 19b33317015d1bbefe27f7a04d32af5e6eeffda9 Mon Sep 17 00:00:00 2001 From: Aaron Barnard Date: Wed, 12 May 2021 13:03:34 +1000 Subject: [PATCH 1/2] 3.3.2-0.0.1: [fix] -Transaction Replace Status Emitter (#123) * Fix bug with matching hash * Increment version --- package.json | 2 +- src/messages.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f0babc8..304f90c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "3.3.2", + "version": "3.3.2-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 c981966..b94df8f 100644 --- a/src/messages.ts +++ b/src/messages.ts @@ -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 } From b43ff268d23c60282a065b3bb62ca29681580cbc Mon Sep 17 00:00:00 2001 From: Taylor Dawson Date: Tue, 11 May 2021 20:05:17 -0700 Subject: [PATCH 2/2] Release: 3.3.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 304f90c..70ca861 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "3.3.2-0.0.1", + "version": "3.3.3", "description": "SDK to connect to the blocknative backend via a websocket connection", "keywords": [ "ethereum",