From 553e542a8db7f6beda027194d062e2be000d9663 Mon Sep 17 00:00:00 2001 From: Pablo Lamela Date: Thu, 4 Apr 2024 20:16:08 +0200 Subject: [PATCH] Remove manual DRep registration from InfoAction test --- .github/workflows/haskell.yml | 2 +- .../Test/LedgerEvents/Gov/InfoAction.hs | 44 ------------------- 2 files changed, 1 insertion(+), 45 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 9bf7105a069..1718aa53ad4 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -38,7 +38,7 @@ jobs: env: # Modify this value to "invalidate" the cabal cache. - CABAL_CACHE_VERSION: "2024-03-07" + CABAL_CACHE_VERSION: "2024-04-24" concurrency: group: > diff --git a/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/InfoAction.hs b/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/InfoAction.hs index cdaf6f62e78..8ad95db8b6f 100644 --- a/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/InfoAction.hs +++ b/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/InfoAction.hs @@ -106,50 +106,6 @@ hprop_ledger_events_info_action = H.integrationRetryWorkspace 0 "info-hash" $ \t , P.signingKeyFile = stakeSKeyFp } - -- Create Drep registration certificates - let drepCertFile :: Int -> FilePath - drepCertFile n = gov "drep-keys" <>"drep" <> show n <> ".regcert" - H.forConcurrently_ [1..3] $ \n -> do - H.execCli' execConfig - [ "conway", "governance", "drep", "registration-certificate" - , "--drep-verification-key-file", defaultDRepVkeyFp n - , "--key-reg-deposit-amt", show @Int 1_000_000 - , "--out-file", drepCertFile n - ] - - -- Retrieve UTxOs for registration submission - txin1 <- findLargestUtxoForPaymentKey epochStateView sbe wallet0 - - drepRegTxbodyFp <- H.note $ work "drep.registration.txbody" - drepRegTxSignedFp <- H.note $ work "drep.registration.tx" - - void $ H.execCli' execConfig - [ "conway", "transaction", "build" - , "--change-address", Text.unpack $ paymentKeyInfoAddr wallet0 - , "--tx-in", Text.unpack $ renderTxIn txin1 - , "--tx-out", Text.unpack (paymentKeyInfoAddr wallet1) <> "+" <> show @Int 5_000_000 - , "--certificate-file", drepCertFile 1 - , "--certificate-file", drepCertFile 2 - , "--certificate-file", drepCertFile 3 - , "--witness-override", show @Int 4 - , "--out-file", drepRegTxbodyFp - ] - - void $ H.execCli' execConfig - [ "conway", "transaction", "sign" - , "--tx-body-file", drepRegTxbodyFp - , "--signing-key-file", paymentSKey $ paymentKeyInfoPair wallet0 - , "--signing-key-file", defaultDRepSkeyFp 1 - , "--signing-key-file", defaultDRepSkeyFp 2 - , "--signing-key-file", defaultDRepSkeyFp 3 - , "--out-file", drepRegTxSignedFp - ] - - void $ H.execCli' execConfig - [ "conway", "transaction", "submit" - , "--tx-file", drepRegTxSignedFp - ] - -- Create info action proposal void $ H.execCli' execConfig