Skip to content

Commit

Permalink
Alow close after orderstatus (#194)
Browse files Browse the repository at this point in the history
* allow close after orderstatus

* add changeset
  • Loading branch information
kirahsapong authored Mar 6, 2024
1 parent 67d58b9 commit 1acffee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/friendly-radios-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tbdex/protocol": minor
---

Allows a `Close` message to proceed an `OrderStatus` message
2 changes: 1 addition & 1 deletion packages/protocol/src/message-kinds/order-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type CreateOrderStatusOptions = {
*/
export class OrderStatus extends Message {
/** a set of valid Message kinds that can come after an order status */
readonly validNext = new Set<MessageKind>(['orderstatus'])
readonly validNext = new Set<MessageKind>(['orderstatus', 'close'])
/** The message kind (orderstatus) */
readonly kind = 'orderstatus'

Expand Down

0 comments on commit 1acffee

Please sign in to comment.