Skip to content

Commit

Permalink
Add a replacement module with deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed Dec 10, 2022
1 parent 0cfb792 commit e06928e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions eras/shelley/impl/cardano-ledger-shelley.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ library
Cardano.Ledger.Shelley.Genesis
Cardano.Ledger.Shelley.HardForks
Cardano.Ledger.Shelley.LedgerState
Cardano.Ledger.Shelley.Metadata
Cardano.Ledger.Shelley.Orphans
Cardano.Ledger.Shelley.PoolRank
Cardano.Ledger.Shelley.PoolParams
Expand Down
7 changes: 7 additions & 0 deletions eras/shelley/impl/src/Cardano/Ledger/Shelley/Metadata.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Cardano.Ledger.Shelley.Metadata
{-# DEPRECATED "Use 'import Cardano.Ledger.Shelley.TxAuxData' instead" #-}
( module X,
)
where

import Cardano.Ledger.Shelley.TxAuxData as X
2 changes: 1 addition & 1 deletion eras/shelley/impl/src/Cardano/Ledger/Shelley/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ shelleyMinFeeTx pp tx =
Coin $
fromIntegral (getField @"_minfeeA" pp)
* tx
^. sizeTxF
^. sizeTxF
+ fromIntegral (getField @"_minfeeB" pp)

minfee ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import Cardano.Ledger.Shelley.LedgerState
UTxOState,
genesisState,
)
import Cardano.Ledger.Shelley.TxAuxData (ShelleyTxAuxData)
import Cardano.Ledger.Shelley.PParams
( ShelleyPParams,
ShelleyPParamsHKD (..),
Expand All @@ -67,6 +66,7 @@ import Cardano.Ledger.Shelley.Scripts
pattern RequireSignature,
)
import Cardano.Ledger.Shelley.Tx (ShelleyTx (..), TxId)
import Cardano.Ledger.Shelley.TxAuxData (ShelleyTxAuxData)
import Cardano.Ledger.Shelley.TxBody
( ShelleyTxBody (..),
ShelleyTxOut (..),
Expand Down

0 comments on commit e06928e

Please sign in to comment.