From daa7e61d3d3bf2ea34238dbe2a0251eff52c92ff Mon Sep 17 00:00:00 2001 From: sorki Date: Mon, 2 Feb 2026 16:16:49 +0100 Subject: [PATCH] api: Fix `MempoolUTxOInput` `address` field from `Text` to `Maybe Text` Closes #83 --- blockfrost-api/CHANGELOG.md | 3 +++ blockfrost-api/src/Blockfrost/Types/Cardano/Mempool.hs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/blockfrost-api/CHANGELOG.md b/blockfrost-api/CHANGELOG.md index 6744eb9..8ac81f7 100644 --- a/blockfrost-api/CHANGELOG.md +++ b/blockfrost-api/CHANGELOG.md @@ -1,5 +1,8 @@ # Version [next](https://github.com/blockfrost/blockfrost-haskell/compare/api-0.14.0.0...master) (2025-MM-DD) +* Changes + * Fix `MempoolUTxOInput` `address` field from `Text` to `Maybe Text` [#83](https://github.com/blockfrost/blockfrost-haskell/issues/83) [#84](https://github.com/blockfrost/blockfrost-haskell/issues/84) + # Version [0.14.0.0](https://github.com/blockfrost/blockfrost-haskell/compare/api-0.13.0.0...api-0.14.0.0) (2025-12-02) * Changes diff --git a/blockfrost-api/src/Blockfrost/Types/Cardano/Mempool.hs b/blockfrost-api/src/Blockfrost/Types/Cardano/Mempool.hs index ccf977f..9957cc6 100644 --- a/blockfrost-api/src/Blockfrost/Types/Cardano/Mempool.hs +++ b/blockfrost-api/src/Blockfrost/Types/Cardano/Mempool.hs @@ -47,7 +47,7 @@ data TransactionInMempool = TransactionInMempool via CustomJSON '[FieldLabelModifier '[StripPrefix "_transaction", CamelToSnake]] TransactionInMempool data MempoolUTxOInput = MempoolUTxOInput - { _address :: Text -- ^ Address + { _address :: Maybe Text -- ^ Address , _txHash :: Text -- ^ Transaction hash , _outputIndex :: Integer -- ^ Output index , _collateral :: Bool -- ^ True if the input is a collateral input