File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
bench/tx-generator/src/Cardano/Benchmarking/Script Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ queryRemoteProtocolParameters :: ActionM ProtocolParameters
174174queryRemoteProtocolParameters = do
175175 localNodeConnectInfo <- getLocalConnectInfo
176176 chainTip <- liftIO $ getLocalChainTip localNodeConnectInfo
177- era <- queryEra
177+ AnyCardanoEra era <- queryEra
178178 let
179179 callQuery :: forall era .
180180 QueryInEra era (Ledger. PParams (ShelleyLedgerEra era ))
@@ -187,14 +187,10 @@ queryRemoteProtocolParameters = do
187187 liftIO $ BSL. writeFile pparamsFile $ prettyPrintOrdered pp'
188188 traceDebug $ " queryRemoteProtocolParameters : query result saved in: " ++ pparamsFile
189189 return pp'
190- case era of
191- AnyCardanoEra ByronEra -> liftTxGenError $ TxGenError " queryRemoteProtocolParameters Byron not supported"
192- AnyCardanoEra ShelleyEra -> callQuery $ QueryInShelleyBasedEra ShelleyBasedEraShelley QueryProtocolParameters
193- AnyCardanoEra AllegraEra -> callQuery $ QueryInShelleyBasedEra ShelleyBasedEraAllegra QueryProtocolParameters
194- AnyCardanoEra MaryEra -> callQuery $ QueryInShelleyBasedEra ShelleyBasedEraMary QueryProtocolParameters
195- AnyCardanoEra AlonzoEra -> callQuery $ QueryInShelleyBasedEra ShelleyBasedEraAlonzo QueryProtocolParameters
196- AnyCardanoEra BabbageEra -> callQuery $ QueryInShelleyBasedEra ShelleyBasedEraBabbage QueryProtocolParameters
197- AnyCardanoEra ConwayEra -> callQuery $ QueryInShelleyBasedEra ShelleyBasedEraConway QueryProtocolParameters
190+ caseByronOrShelleyBasedEra
191+ (liftTxGenError $ TxGenError " queryRemoteProtocolParameters Byron not supported" )
192+ (\ sbe -> callQuery $ QueryInShelleyBasedEra sbe QueryProtocolParameters )
193+ era
198194
199195getProtocolParameters :: ActionM ProtocolParameters
200196getProtocolParameters = do
You can’t perform that action at this time.
0 commit comments