Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fromProposalProcedure: return StakeCredential #692

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading