Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Hurlin <[email protected]>
  • Loading branch information
carbolymer and smelc authored Nov 14, 2024
1 parent 30bf0b7 commit e12204a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cardano-api/internal/Cardano/Api/Query/Expr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ queryStakeDelegDeposits
queryStakeDelegDeposits era stakeCreds
| S.null stakeCreds = pure . pure $ pure mempty
| otherwise = do
let sbe = inject era :: ShelleyBasedEra era
let sbe :: ShelleyBasedEra era = inject era
queryExpr $ QueryInEra . QueryInShelleyBasedEra sbe $ QueryStakeDelegDeposits stakeCreds

queryStakeDistribution
Expand Down Expand Up @@ -399,7 +399,7 @@ queryDRepState
(Either EraMismatch (Map (L.Credential L.DRepRole L.StandardCrypto) (L.DRepState L.StandardCrypto)))
)
queryDRepState era drepCreds = do
let sbe = inject era :: ShelleyBasedEra era
let sbe :: ShelleyBasedEra era = inject era
queryExpr $ QueryInEra $ QueryInShelleyBasedEra sbe $ QueryDRepState drepCreds

queryDRepStakeDistribution
Expand Down Expand Up @@ -473,7 +473,7 @@ queryStakeVoteDelegatees
(Either EraMismatch (Map StakeCredential (L.DRep L.StandardCrypto)))
)
queryStakeVoteDelegatees era stakeCredentials = do
let sbe = inject era :: ShelleyBasedEra era
let sbe :: ShelleyBasedEra era = inject era
queryExpr $ QueryInEra $ QueryInShelleyBasedEra sbe $ QueryStakeVoteDelegatees stakeCredentials

queryAccountState
Expand Down
4 changes: 2 additions & 2 deletions cardano-api/internal/Cardano/Api/Tx/Body.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ fromAlonzoTxOut w txdatums txOut =
(fromAlonzoTxOutDatum w txdatums (txOut ^. L.dataHashTxOutL))
ReferenceScriptNone
where
sbe = inject w :: ShelleyBasedEra era
sbe :: ShelleyBasedEra era = inject w

fromAlonzoTxOutDatum
:: ()
Expand Down Expand Up @@ -2095,7 +2095,7 @@ fromBabbageTxOut w txdatums txout =
SJust rScript -> fromShelleyScriptToReferenceScript shelleyBasedEra rScript
)
where
sbe = inject w :: ShelleyBasedEra era
sbe :: ShelleyBasedEra era = inject w

-- NOTE: This is different to 'fromBabbageTxOutDatum' as it may resolve
-- 'DatumHash' values using the datums included in the transaction.
Expand Down

0 comments on commit e12204a

Please sign in to comment.