Skip to content

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Aug 1, 2024
1 parent 49c29fc commit 8f0de78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cardano-cli/src/Cardano/CLI/Types/Errors/TxValidationError.hs
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,14 @@ conjureWitness era errF =
maybe (cardanoEraConstraints era $ Left . errF $ AnyCardanoEra era) Right $
forEraMaybeEon era

-- TODO MOVE TO cardano-api
getVotingScriptCredentials
:: VotingProcedures era
-> Maybe (L.Voter (L.EraCrypto (ShelleyLedgerEra era)))
getVotingScriptCredentials (VotingProcedures (L.VotingProcedures m)) =
listToMaybe $ Map.keys m

-- TODO MOVE TO cardano-api
votingScriptWitnessSingleton
:: VotingProcedures era
-> Maybe (ScriptWitness WitCtxStake era)
Expand Down Expand Up @@ -265,6 +267,7 @@ convertToTxVotingProcedures votingProcedures = do
votingProcedures
f acc (procedure, _witness) = mergeVotingProcedures acc procedure

-- TODO MOVE TO cardano-api
proposingScriptWitnessSingleton
:: Proposal era
-> Maybe (ScriptWitness WitCtxStake era)
Expand All @@ -273,6 +276,7 @@ proposingScriptWitnessSingleton _ Nothing = Map.empty
proposingScriptWitnessSingleton (Proposal proposalProcedure) (Just scriptWitness) =
Map.singleton proposalProcedure scriptWitness

-- TODO MOVE TO cardano-api
convToTxProposalProcedures
:: L.EraPParams (ShelleyLedgerEra era)
=> [(Proposal era, Maybe (ScriptWitness WitCtxStake era))]
Expand Down

0 comments on commit 8f0de78

Please sign in to comment.