Skip to content

Commit

Permalink
cardano-api upgrade: use convert instead of deprecated conwayEraOnwar…
Browse files Browse the repository at this point in the history
…dsToShelleyBasedEra
  • Loading branch information
neilmayhew committed Dec 10, 2024
1 parent 37a745e commit d2aca1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cardano-testnet/src/Testnet/Components/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ getGovState
-> m (L.ConwayGovState (ShelleyLedgerEra era)) -- ^ The governance state
getGovState epochStateView ceo = withFrozenCallStack $ do
AnyNewEpochState sbe' newEpochState <- getEpochState epochStateView
let sbe = conwayEraOnwardsToShelleyBasedEra ceo
let sbe = convert ceo
Refl <- H.leftFail $ assertErasEqual sbe sbe'
pure $ conwayEraOnwardsConstraints ceo $ newEpochState ^. L.newEpochStateGovStateL

Expand Down
4 changes: 2 additions & 2 deletions cardano-testnet/src/Testnet/Process/Cli/DRep.hs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ registerDRep
-- as returned by 'cardanoTestnetDefault'.
-> m (KeyPair PaymentKey)
registerDRep execConfig epochStateView ceo work prefix wallet = do
let sbe = conwayEraOnwardsToShelleyBasedEra ceo
let sbe = convert ceo
era = toCardanoEra sbe
cEra = AnyCardanoEra era

Expand Down Expand Up @@ -354,7 +354,7 @@ makeActivityChangeProposal
makeActivityChangeProposal execConfig epochStateView ceo work
prevGovActionInfo drepActivity stakeKeyPair wallet timeout = do

let sbe = conwayEraOnwardsToShelleyBasedEra ceo
let sbe = convert ceo
era = toCardanoEra sbe
cEra = AnyCardanoEra era
KeyPair{verificationKey=File stakeVkeyFp} = stakeKeyPair
Expand Down

0 comments on commit d2aca1e

Please sign in to comment.