Skip to content

Commit a263d2f

Browse files
committed
add type sigs
1 parent f22c3fb commit a263d2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/BotPlutusInterface/ChainIndex.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ chainIndexQueryOne pabConf endpoint = do
9393
chainIndexUtxoQuery :: forall (w :: Type). ContractEnvironment w -> ClientM UtxosResponse -> IO UtxosResponse
9494
chainIndexUtxoQuery contractEnv query = do
9595
collateralUtxo <- readCollateralUtxo contractEnv
96-
let removeCollateral (UtxosResponse tip page) = UtxosResponse tip (removeCollateralFromPage collateralUtxo page)
96+
let removeCollateral :: UtxosResponse -> UtxosResponse
97+
removeCollateral (UtxosResponse tip page) = UtxosResponse tip (removeCollateralFromPage collateralUtxo page)
9798
removeCollateral
9899
<$> chainIndexQueryMany
99100
contractEnv.cePABConfig
@@ -103,7 +104,8 @@ chainIndexUtxoQuery contractEnv query = do
103104
chainIndexTxoQuery :: forall (w :: Type). ContractEnvironment w -> ClientM TxosResponse -> IO TxosResponse
104105
chainIndexTxoQuery contractEnv query = do
105106
collateralUtxo <- readCollateralUtxo contractEnv
106-
let removeCollateral (TxosResponse page) = TxosResponse (removeCollateralFromPage collateralUtxo page)
107+
let removeCollateral :: TxosResponse -> TxosResponse
108+
removeCollateral (TxosResponse page) = TxosResponse (removeCollateralFromPage collateralUtxo page)
107109
removeCollateral
108110
<$> chainIndexQueryMany
109111
contractEnv.cePABConfig

0 commit comments

Comments
 (0)