Skip to content

Commit

Permalink
Remove unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jul 27, 2023
1 parent c0e6889 commit b06238d
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 b06238d

Please sign in to comment.