Skip to content

Commit

Permalink
Derive Eq instance for AcquiringFailure
Browse files Browse the repository at this point in the history
This is often used in tests where we would like to assert that we
receive one or the other.
  • Loading branch information
ch1bo committed Nov 30, 2022
1 parent 15556f3 commit 9d98394
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cardano-api/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

- **Breaking change** - Reduce exposed modules in cardano-api ([PR4546](https://github.com/input-output-hk/cardano-node/pull/4546))

- **Breaking change** Change return type of `queryNodeLocalState` to new `AcquiringFailure` type.

### Bugs

- Allow reading text envelopes from pipes ([PR 4384](https://github.com/input-output-hk/cardano-node/pull/4384))
Expand Down
2 changes: 1 addition & 1 deletion cardano-api/src/Cardano/Api/IPC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ mapLocalTxMonitoringClient convTxid convTx ltxmc =

data AcquiringFailure = AFPointTooOld
| AFPointNotOnChain
deriving Show
deriving (Eq, Show)

toAcquiringFailure :: Net.Query.AcquireFailure -> AcquiringFailure
toAcquiringFailure AcquireFailurePointTooOld = AFPointTooOld
Expand Down

0 comments on commit 9d98394

Please sign in to comment.