Skip to content

Commit

Permalink
Merge pull request #262 from convergence-rfq/fix-getResponseState
Browse files Browse the repository at this point in the history
Fix get response state
  • Loading branch information
Nagaprasadvr authored Dec 13, 2023
2 parents 2d16c89 + 1a3c3af commit c271458
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @convergence-rfq/cli

## 4.5.21

### Patch Changes

- Updated dependencies
- @convergence-rfq/sdk@4.5.21

## 4.5.20

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/cli",
"description": "Official Convergence CLI",
"version": "4.5.20",
"version": "4.5.21",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -47,7 +47,7 @@
"cli": "ts-node src/index.ts"
},
"dependencies": {
"@convergence-rfq/sdk": "4.5.20",
"@convergence-rfq/sdk": "4.5.21",
"@solana/web3.js": "^1.73.0",
"@types/cookie": "^0.5.1",
"commander": "^10.0.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @convergence-rfq/sdk

## 4.5.21

### Patch Changes

- Fix getResponseState to avoid conflict between enum DefaultingParty.Talker (0) and null

## 4.5.20

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/sdk",
"description": "Official Convergence RFQ SDK",
"version": "4.5.20",
"version": "4.5.21",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const getDefautingParty = (
takerPrepared: boolean
): DefaultingParty | null => {
const { defaultingParty } = response;
if (defaultingParty) return defaultingParty;
if (defaultingParty !== null) return defaultingParty;
const defaulted =
settlementWindowElapsed && (!makerPrepared || !takerPrepared);

Expand Down

0 comments on commit c271458

Please sign in to comment.