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 }