Skip to content

Commit 04fa4b7

Browse files
committed
cardano-api upgrade: use convert instead of deprecated conwayEraOnwardsToShelleyBasedEra
1 parent 88720d6 commit 04fa4b7

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

cardano-testnet/src/Testnet/Components/Query.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ getGovState
465465
-> m (L.ConwayGovState (ShelleyLedgerEra era)) -- ^ The governance state
466466
getGovState epochStateView ceo = withFrozenCallStack $ do
467467
AnyNewEpochState sbe' newEpochState <- getEpochState epochStateView
468-
let sbe = conwayEraOnwardsToShelleyBasedEra ceo
468+
let sbe = convert ceo
469469
Refl <- H.leftFail $ assertErasEqual sbe sbe'
470470
pure $ conwayEraOnwardsConstraints ceo $ newEpochState ^. L.newEpochStateGovStateL
471471

cardano-testnet/src/Testnet/Process/Cli/DRep.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ registerDRep
227227
-- as returned by 'cardanoTestnetDefault'.
228228
-> m (KeyPair PaymentKey)
229229
registerDRep execConfig epochStateView ceo work prefix wallet = do
230-
let sbe = conwayEraOnwardsToShelleyBasedEra ceo
230+
let sbe = convert ceo
231231
era = toCardanoEra sbe
232232
cEra = AnyCardanoEra era
233233

@@ -354,7 +354,7 @@ makeActivityChangeProposal
354354
makeActivityChangeProposal execConfig epochStateView ceo work
355355
prevGovActionInfo drepActivity stakeKeyPair wallet timeout = do
356356

357-
let sbe = conwayEraOnwardsToShelleyBasedEra ceo
357+
let sbe = convert ceo
358358
era = toCardanoEra sbe
359359
cEra = AnyCardanoEra era
360360
KeyPair{verificationKey=File stakeVkeyFp} = stakeKeyPair

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Conway/Plutus.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ hprop_plutus_v3 = integrationWorkspace "all-plutus-script-purposes" $ \tempAbsBa
5555
let
5656
tempBaseAbsPath = makeTmpBaseAbsPath $ TmpAbsolutePath tempAbsPath'
5757
ceo = ConwayEraOnwardsConway
58-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
58+
sbe = convert ceo
5959
era = toCardanoEra sbe
6060
anyEra = AnyCardanoEra era
6161
options = def { cardanoNodeEra = AnyShelleyBasedEra sbe }

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/KesPeriodInfo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ hprop_kes_period_info = integrationRetryWorkspace 2 "kes-period-info" $ \tempAbs
6262

6363
let tempBaseAbsPath = makeTmpBaseAbsPath tempAbsPath
6464
ceo = ConwayEraOnwardsConway
65-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
65+
sbe = convert ceo
6666
asbe = AnyShelleyBasedEra sbe
6767
eraString = eraToString sbe
6868
cTestnetOptions = def { cardanoNodeEra = asbe }

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/LeadershipSchedule.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ hprop_leadershipSchedule = integrationRetryWorkspace 2 "leadership-schedule" $ \
6262
conf@Conf { tempAbsPath=tempAbsPath@(TmpAbsolutePath work) } <- mkConf tempAbsBasePath'
6363
let tempBaseAbsPath = makeTmpBaseAbsPath tempAbsPath
6464
ceo = ConwayEraOnwardsConway
65-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
65+
sbe = convert ceo
6666
asbe = AnyShelleyBasedEra sbe
6767
cTestnetOptions = def
6868
{ cardanoNodeEra = asbe

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Transaction/RegisterDeregisterStakeAddress.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ hprop_tx_register_deregister_stake_address = integrationWorkspace "register-dere
4949
work <- H.createDirectoryIfMissing $ tempAbsPath' </> "work"
5050

5151
let ceo = ConwayEraOnwardsConway
52-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
52+
sbe = convert ceo
5353
eraName = eraToString sbe
5454
fastTestnetOptions = def { cardanoNodeEra = AnyShelleyBasedEra sbe }
5555
shelleyOptions = def { genesisEpochLength = 200 }

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/CommitteeAddNew.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ hprop_constitutional_committee_add_new = integrationWorkspace "constitutional-co
7474
nDrepVotes = length drepVotes
7575
nSpos = fromIntegral $ cardanoNumPools fastTestnetOptions
7676
ceo = ConwayEraOnwardsConway
77-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
77+
sbe = convert ceo
7878
era = toCardanoEra sbe
7979
cEra = AnyCardanoEra era
8080
eraName = eraToString era

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/DRepActivity.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ hprop_check_drep_activity = integrationWorkspace "test-activity" $ \tempAbsBaseP
6060

6161
-- Create default testnet with 3 DReps and 3 stake holders delegated, one to each DRep.
6262
let ceo = ConwayEraOnwardsConway
63-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
63+
sbe = convert ceo
6464
fastTestnetOptions = def
6565
{ cardanoNodeEra = AnyShelleyBasedEra sbe
6666
, cardanoNumDReps = 1
@@ -219,7 +219,7 @@ activityChangeProposalTest
219219
-> m (String, Word16) -- ^ The transaction id and the index of the governance action.
220220
activityChangeProposalTest execConfig epochStateView ceo work prefix
221221
stakeKeys wallet votes change minWait mExpected maxWait = do
222-
let sbe = conwayEraOnwardsToShelleyBasedEra ceo
222+
let sbe = convert ceo
223223

224224
mPreviousProposalInfo <- getLastPParamUpdateActionId execConfig
225225

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/DRepDeposit.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ hprop_ledger_events_drep_deposits = integrationWorkspace "drep-deposits" $ \temp
4242
work <- H.createDirectoryIfMissing $ tempAbsPath' </> "work"
4343

4444
let ceo = ConwayEraOnwardsConway
45-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
45+
sbe = convert ceo
4646
era = toCardanoEra sbe
4747
cEra = AnyCardanoEra era
4848
fastTestnetOptions = def

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/GovActionTimeout.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ hprop_check_gov_action_timeout = integrationWorkspace "gov-action-timeout" $ \te
5151

5252
-- Create default testnet
5353
let ceo = ConwayEraOnwardsConway
54-
sbe = conwayEraOnwardsToShelleyBasedEra ceo
54+
sbe = convert ceo
5555
eraName = eraToString sbe
5656
asbe = AnyShelleyBasedEra sbe
5757
fastTestnetOptions = def { cardanoNodeEra = asbe }

0 commit comments

Comments
 (0)