Skip to content

Commit

Permalink
Specify IsRecentEra constraint in buildCoinSelectionForTransaction.
Browse files Browse the repository at this point in the history
We only support building transactions in "recent eras", and
"IsRecentEra" already provides us with the superclass constraint that
was missing, so using it kills two birds with one stone.
  • Loading branch information
jonathanknowles committed Mar 16, 2023
1 parent 20ee5ab commit 343cb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wallet/src/Cardano/Wallet.hs
Expand Up @@ -1696,7 +1696,7 @@ data CoinSelection = CoinSelection

buildCoinSelectionForTransaction
:: forall s k n era
. ( Cardano.IsCardanoEra era
. ( WriteTx.IsRecentEra era
, IsOurs s Address
, s ~ SeqState n k
)
Expand Down

0 comments on commit 343cb24

Please sign in to comment.