Skip to content

Commit

Permalink
Merge pull request #692 from IntersectMBO/smelc/cl/change-from-propos…
Browse files Browse the repository at this point in the history
…al-procedure-return-type

fromProposalProcedure: return StakeCredential
  • Loading branch information
smelc authored Nov 27, 2024
2 parents 4f81141 + 19771e7 commit 715673d
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module Cardano.Api.Governance.Actions.ProposalProcedure where
import Cardano.Api.Address
import Cardano.Api.Eon.ShelleyBasedEra
import Cardano.Api.HasTypeProxy
import Cardano.Api.Keys.Shelley
import Cardano.Api.ProtocolParameters
import qualified Cardano.Api.ReexposeLedger as Ledger
import Cardano.Api.SerialiseCBOR
Expand Down Expand Up @@ -196,15 +195,12 @@ createProposalProcedure sbe nw dep cred govAct anchor =
fromProposalProcedure
:: ShelleyBasedEra era
-> Proposal era
-> (L.Coin, Hash StakeKey, GovernanceAction era)
-> (L.Coin, StakeCredential, GovernanceAction era)
fromProposalProcedure sbe (Proposal pp) =
shelleyBasedEraConstraints
sbe
( Gov.pProcDeposit pp
, case fromShelleyStakeCredential (L.raCredential (Gov.pProcReturnAddr pp)) of
StakeCredentialByKey keyhash -> keyhash
StakeCredentialByScript _scripthash ->
error "fromProposalProcedure TODO: Conway era script reward addresses not yet supported"
, fromShelleyStakeCredential (L.raCredential (Gov.pProcReturnAddr pp))
, fromGovernanceAction (Gov.pProcGovAction pp)
)

Expand Down

0 comments on commit 715673d

Please sign in to comment.