Skip to content

Commit

Permalink
Merge pull request #146 from input-output-hk/newhoggy/remove-unnecess…
Browse files Browse the repository at this point in the history
…ary-function

Remove unnecessary function `getShelleyEraTxBodyConstraint`
  • Loading branch information
newhoggy committed Jul 28, 2023
2 parents 84a690d + b06238d commit 71fcd1e
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions cardano-api/internal/Cardano/Api/Fees.hs
Original file line number Diff line number Diff line change
Expand Up @@ -652,21 +652,9 @@ evaluateTransactionBalance bpp poolids stakeDelegDeposits utxo
(ShelleyTxBody sbe txbody _ _ _ _) =
withLedgerConstraints
sbe
(getShelleyEraTxBodyConstraint sbe evalAdaOnly)
(getShelleyEraTxBodyConstraint sbe evalMultiAsset)
(shelleyBasedEraConstraints sbe evalAdaOnly)
(shelleyBasedEraConstraints sbe evalMultiAsset)
where
getShelleyEraTxBodyConstraint
:: forall era' a.
ShelleyBasedEra era'
-> (ShelleyEraTxBody (ShelleyLedgerEra era') => a)
-> a
getShelleyEraTxBodyConstraint ShelleyBasedEraShelley x = x
getShelleyEraTxBodyConstraint ShelleyBasedEraMary x = x
getShelleyEraTxBodyConstraint ShelleyBasedEraAllegra x = x
getShelleyEraTxBodyConstraint ShelleyBasedEraAlonzo x = x
getShelleyEraTxBodyConstraint ShelleyBasedEraBabbage x = x
getShelleyEraTxBodyConstraint ShelleyBasedEraConway x = x

isRegPool :: Ledger.KeyHash Ledger.StakePool Ledger.StandardCrypto -> Bool
isRegPool kh = StakePoolKeyHash kh `Set.member` poolids

Expand Down

0 comments on commit 71fcd1e

Please sign in to comment.