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 authored and newhoggy committed Mar 1, 2023
1 parent 101e247 commit a339626
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 @@ -27,6 +27,8 @@
- **Breaking change** - `queryExpr` to return `IO (Either UnsupportedNtcVersionError a)` instead of `IO a`.
([PR4788](https://github.com/input-output-hk/cardano-node/pull/4788))

- **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 @@ -575,7 +575,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 a339626

Please sign in to comment.