Skip to content

Commit

Permalink
Unqualify Cardano.Api
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <[email protected]>
  • Loading branch information
palas and carbolymer committed Oct 31, 2024
1 parent 5e8cbc0 commit 114680d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cardano-cli/src/Cardano/CLI/EraBased/Transaction/HashCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module Cardano.CLI.EraBased.Transaction.HashCheck
)
where

import Cardano.Api (Certificate (..), ExceptT, firstExceptT)
import qualified Cardano.Api as L
import Cardano.Api (Certificate (..), ExceptT, firstExceptT, getAnchorDataFromCertificate,
withExceptT)
import qualified Cardano.Api.Ledger as L
import qualified Cardano.Api.Shelley as Shelley

Expand All @@ -33,7 +33,8 @@ checkAnchorMetadataHash anchor =
-- and they match the linked data.
checkCertificateHashes :: Certificate era -> ExceptT TxCmdError IO ()
checkCertificateHashes cert = do
mAnchor <- L.withExceptT TxCmdPoolMetadataHashError $ L.except $ L.getAnchorDataFromCertificate cert
mAnchor <-
withExceptT TxCmdPoolMetadataHashError $ Shelley.except $ getAnchorDataFromCertificate cert
maybe (return mempty) checkAnchorMetadataHash mAnchor

-- | Find references to anchor data in voting procedures and check the hashes are valid
Expand Down

0 comments on commit 114680d

Please sign in to comment.