Skip to content

Commit

Permalink
Merge pull request #106 from blocknative/release/3.1.1
Browse files Browse the repository at this point in the history
Release 3.1.1

Fixes #104
  • Loading branch information
lnbc1QWFyb24 authored Feb 12, 2021
2 parents a9301e4 + bd04a2c commit 83e72a5
Show file tree
Hide file tree
Showing 3 changed files with 12 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.1.0",
"version": "3.1.1",
"description": "SDK to connect to the blocknative backend via a websocket connection",
"keywords": [
"ethereum",
Expand Down
1 change: 1 addition & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export type TransactionEventCode =
| 'txSendFail'
| 'txError'
| 'txUnderPriced'
| 'txDropped'
| 'all'

export interface Ac {
Expand Down
11 changes: 10 additions & 1 deletion src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@ export function createEmitter(): Emitter {
case 'txSpeedUp':
case 'txCancel':
case 'txFailed':
case 'txDropped':
case 'txRequest':
case 'nsfFail':
case 'txRepeat':
case 'txAwaitingApproval':
case 'txConfirmReminder':
case 'txSendFail':
case 'txError':
case 'txUnderPriced':
case 'all':
break
default:
throw new Error(
`${eventCode} is not a valid event code, for a list of valid event codes see: https://github.com/blocknative/sdk`
`${eventCode} is not a valid event code, for a list of valid event codes see: https://docs.blocknative.com/notify-sdk#event-codes`
)
}

Expand Down

0 comments on commit 83e72a5

Please sign in to comment.