Skip to content

Commit 73d48ab

Browse files
committed
cardano-testnet-test: small simplification
1 parent b8f38f5 commit 73d48ab

File tree

1 file changed

+4
-6
lines changed
  • cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ hprop_kes_period_info = integrationRetryWorkspace 2 "kes-period-info" $ \tempAbs
5757

5858
let tempBaseAbsPath = makeTmpBaseAbsPath tempAbsPath
5959
sbe = ShelleyBasedEraBabbage
60-
era = toCardanoEra sbe
61-
anyEra = AnyCardanoEra era
60+
eraString = eraToString sbe
6261
cTestnetOptions = cardanoDefaultTestnetOptions
6362
{ cardanoNodes = cardanoDefaultTestnetNodeOptions
6463
, cardanoNodeEra = AnyShelleyBasedEra sbe -- TODO: We should only support the latest era and the upcoming era
@@ -78,7 +77,7 @@ hprop_kes_period_info = integrationRetryWorkspace 2 "kes-period-info" $ \tempAbs
7877
let utxoAddr = Text.unpack $ paymentKeyInfoAddr wallet0
7978
utxoSKeyFile = signingKeyFp $ paymentKeyInfoPair wallet0
8079
void $ execCli' execConfig
81-
[ anyEraToString anyEra, "query", "utxo"
80+
[ eraString, "query", "utxo"
8281
, "--address", utxoAddr
8382
, "--cardano-mode"
8483
, "--out-file", work </> "utxo-1.json"
@@ -153,7 +152,7 @@ hprop_kes_period_info = integrationRetryWorkspace 2 "kes-period-info" $ \tempAbs
153152
H.note_ "Get updated UTxO"
154153

155154
void $ execCli' execConfig
156-
[ anyEraToString anyEra, "query", "utxo"
155+
[ eraString, "query", "utxo"
157156
, "--address", utxoAddr
158157
, "--cardano-mode"
159158
, "--out-file", work </> "utxo-2.json"
@@ -165,8 +164,7 @@ hprop_kes_period_info = integrationRetryWorkspace 2 "kes-period-info" $ \tempAbs
165164
UTxO utxo2 <- H.noteShowM $ decodeEraUTxO sbe utxo2Json
166165
txin2 <- H.noteShow =<< H.headM (Map.keys utxo2)
167166

168-
let eraString = eraToString sbe
169-
delegRegTestDelegatorTxBodyFp = work </> "deleg-register-test-delegator.txbody"
167+
let delegRegTestDelegatorTxBodyFp = work </> "deleg-register-test-delegator.txbody"
170168

171169
void $ execCli' execConfig
172170
[ eraString

0 commit comments

Comments
 (0)