Skip to content

Commit

Permalink
Merge pull request #493 from IntersectMBO/newhoggy/undeprecate-evalua…
Browse files Browse the repository at this point in the history
…teTransactionFee

Undeprecate `evaluateTransactionFee`
  • Loading branch information
newhoggy authored Mar 25, 2024
2 parents 7d9239a + d504d4e commit a02a8fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cardano-api/internal/Cardano/Api/Fees.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import Lens.Micro ((.~), (^.))
-- assumption that there will be the given number of key witnesses (i.e.
-- signatures).
--
-- Use 'calculateMinTxFee' instead as that function is more accurate.
-- Use 'calculateMinTxFee' if possible as that function is more accurate.
evaluateTransactionFee :: forall era. ()
=> ShelleyBasedEra era
-> Ledger.PParams (ShelleyLedgerEra era)
Expand All @@ -108,7 +108,6 @@ evaluateTransactionFee sbe pp txbody keywitcount byronwitcount =
case makeSignedTransaction' (shelleyBasedToCardanoEra sbe) [] txbody of
ShelleyTx _ tx ->
L.estimateMinFeeTx pp tx (fromIntegral keywitcount) (fromIntegral byronwitcount)
{-# DEPRECATED evaluateTransactionFee "Use 'calculateMinTxFee' instead" #-}

-- | Estimate minimum transaction fee for a proposed transaction by looking
-- into the transaction and figuring out how many and what kind of key
Expand Down

0 comments on commit a02a8fb

Please sign in to comment.