Skip to content

Commit

Permalink
3.3.2-0.0.1: [fix] -Transaction Replace Status Emitter (#123)
Browse files Browse the repository at this point in the history
* Fix bug with matching hash
* Increment version
lnbc1QWFyb24 authored May 12, 2021
1 parent 7a2f294 commit 19b3331
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.2-0.0.1",
"description": "SDK to connect to the blocknative backend via a websocket connection",
"keywords": [
"ethereum",
2 changes: 1 addition & 1 deletion src/messages.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 19b3331

Please sign in to comment.