Skip to content

Commit

Permalink
Remove unused function toPlutusValue
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Dec 9, 2024
1 parent f86b459 commit 84c7622
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions hydra-cardano-api/src/Hydra/Cardano/Api/Value.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module Hydra.Cardano.Api.Value where
import Hydra.Cardano.Api.Prelude hiding (toLedgerValue)

import Cardano.Api.Ledger (Coin (..), PParams)
import Cardano.Ledger.Alonzo.Plutus.TxInfo qualified as Ledger
import Cardano.Ledger.Core (getMinCoinTxOut)
import Cardano.Ledger.Mary.Value qualified as Ledger
import Data.Word (Word64)
Expand Down Expand Up @@ -92,8 +91,3 @@ fromPlutusValue plutusValue = do

toAssetName :: Plutus.TokenName -> AssetName
toAssetName = AssetName . fromBuiltin . unTokenName

-- | Convert a cardano-api 'Value' into a plutus 'Value'
toPlutusValue :: Value -> Plutus.Value
toPlutusValue =
Ledger.transValue . toLedgerValue

0 comments on commit 84c7622

Please sign in to comment.