Skip to content

Commit

Permalink
Tidy: drop Ledger.Era era => constraint from Tx pattern
Browse files Browse the repository at this point in the history
It is unnecessary.

It should also never have been there in the first place since doing so
exposes things from the underlying libraries that the API is trying to
wrap and hide.
  • Loading branch information
dcoutts committed Jul 20, 2021
1 parent 759f78c commit f72c627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-api/src/Cardano/Api/Tx.hs
Expand Up @@ -394,7 +394,7 @@ instance IsCardanoEra era => HasTextEnvelope (KeyWitness era) where
AlonzoEra -> "TxWitness AlonzoEra"


pattern Tx :: Ledger.Era era => TxBody era -> [KeyWitness era] -> Tx era
pattern Tx :: TxBody era -> [KeyWitness era] -> Tx era
pattern Tx txbody ws <- (getTxBodyAndWitnesses -> (txbody, ws))
where
Tx txbody ws = makeSignedTransaction ws txbody
Expand Down

0 comments on commit f72c627

Please sign in to comment.