File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
cardano-cli/src/Cardano/CLI/EraBased Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -209,11 +209,8 @@ data QueryDRepStateCmdArgs era = QueryDRepStateCmdArgs
209209
210210data QueryProposalsCmdArgs era = QueryProposalsCmdArgs
211211 { eon :: ! (ConwayEraOnwards era )
212- , nodeSocketPath :: ! SocketPath
213- , consensusModeParams :: ! ConsensusModeParams
214- , networkId :: ! NetworkId
212+ , commons :: ! QueryCommons
215213 , govActionIds :: ! (AllOrOnly (L. GovActionId L. StandardCrypto ))
216- , target :: ! (Consensus. Target ChainPoint )
217214 , mOutFile :: ! (Maybe (File () Out ))
218215 }
219216 deriving Show
Original file line number Diff line number Diff line change @@ -536,11 +536,8 @@ pQueryProposalsCmd era envCli = do
536536 pQueryProposalsCmdArgs :: ConwayEraOnwards era -> Parser (QueryProposalsCmdArgs era )
537537 pQueryProposalsCmdArgs w =
538538 QueryProposalsCmdArgs w
539- <$> pSocketPath envCli
540- <*> pConsensusModeParams
541- <*> pNetworkId envCli
539+ <$> pQueryCommons (convert w) envCli
542540 <*> pAllOrOnlyGovActionIds w
543- <*> pTarget era
544541 <*> optional pOutputFile
545542
546543pQuerySPOStakeDistributionCmd
Original file line number Diff line number Diff line change @@ -1810,11 +1810,14 @@ runQueryProposals
18101810runQueryProposals
18111811 Cmd. QueryProposalsCmdArgs
18121812 { Cmd. eon
1813- , Cmd. nodeSocketPath
1814- , Cmd. consensusModeParams
1815- , Cmd. networkId
1813+ , Cmd. commons =
1814+ Cmd. QueryCommons
1815+ { Cmd. nodeSocketPath
1816+ , Cmd. consensusModeParams
1817+ , Cmd. networkId
1818+ , Cmd. target
1819+ }
18161820 , Cmd. govActionIds = govActionIds'
1817- , Cmd. target
18181821 , Cmd. mOutFile
18191822 } = conwayEraOnwardsConstraints eon $ do
18201823 let localNodeConnInfo = LocalNodeConnectInfo consensusModeParams networkId nodeSocketPath
You can’t perform that action at this time.
0 commit comments