Skip to content

Commit

Permalink
Propagate TxGovernanceAction throughout the rest of cardano-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Jun 22, 2023
1 parent e565f63 commit 0fbe812
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ import Cardano.Api.Shelley (GovernancePoll (..), GovernancePollAnswer
OperationalCertificateIssueCounter (OperationalCertificateIssueCounter),
PlutusScript (PlutusScriptSerialised), ProtocolParameters (..),
ReferenceScript (..), ReferenceTxInsScriptsInlineDatumsSupportedInEra (..),
StakeCredential (StakeCredentialByKey), StakePoolKey,
StakeCredential (StakeCredentialByKey), StakePoolKey, TxGovernanceAction (..),
refInsScriptsAndInlineDatsSupportedInEra)

import qualified Cardano.Binary as CBOR
Expand Down Expand Up @@ -644,7 +644,7 @@ genTxBodyContent era = do
txUpdateProposal <- genTxUpdateProposal era
txMintValue <- genTxMintValue era
txScriptValidity <- genTxScriptValidity era

txGovernanceActions <- return TxGovernanceActionsNone -- TODO: Conway era
pure $ TxBodyContent
{ Api.txIns
, Api.txInsCollateral
Expand All @@ -663,6 +663,7 @@ genTxBodyContent era = do
, Api.txUpdateProposal
, Api.txMintValue
, Api.txScriptValidity
, Api.txGovernanceActions
}

genTxInsCollateral :: CardanoEra era -> Gen (TxInsCollateral era)
Expand Down
2 changes: 2 additions & 0 deletions cardano-api/src/Cardano/Api/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ module Cardano.Api.Shelley
SystemStart(..),

-- ** Governance
TxGovernanceAction(..),
GovernancePoll (..),
GovernancePollAnswer (..),
GovernancePollError (..),
Expand Down Expand Up @@ -265,6 +266,7 @@ import Cardano.Api.Certificate
import Cardano.Api.DRepMetadata
import Cardano.Api.Eras
import Cardano.Api.Genesis
import Cardano.Api.Governance.Actions.ProposalProcedure
import Cardano.Api.Governance.Poll
import Cardano.Api.InMode
import Cardano.Api.IPC
Expand Down

0 comments on commit 0fbe812

Please sign in to comment.