Skip to content

Commit 4bbc441

Browse files
committed
Move a conwayEraSpecificSpec testcase
1 parent 683bd14 commit 4bbc441

File tree

1 file changed

+8
-9
lines changed
  • eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp

1 file changed

+8
-9
lines changed

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp/DelegSpec.hs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ spec = do
5757
it "With correct deposit or without any deposit" $ do
5858
expectedDeposit <- getsNES $ nesEsL . curPParamsEpochStateL . ppKeyDepositL
5959

60+
cred <- KeyHashObj <$> freshKeyHash
61+
-- NOTE: This will always generate certs with deposits post-Conway
62+
regTxCert <- genRegTxCert cred
63+
submitTx_ $
64+
mkBasicTx mkBasicTxBody
65+
& bodyTxL . certsTxBodyL .~ [regTxCert]
66+
expectRegistered cred
67+
6068
freshKeyHash >>= \kh -> do
6169
submitTx_ $
6270
mkBasicTx mkBasicTxBody
@@ -726,15 +734,6 @@ conwayEraSpecificSpec ::
726734
) =>
727735
SpecWith (ImpInit (LedgerSpec era))
728736
conwayEraSpecificSpec = do
729-
describe "Register stake credential" $ do
730-
it "Without any deposit" $ do
731-
cred <- KeyHashObj <$> freshKeyHash
732-
regTxCert <- genRegTxCert cred
733-
submitTx_ $
734-
mkBasicTx mkBasicTxBody
735-
& bodyTxL . certsTxBodyL .~ [regTxCert]
736-
expectRegistered cred
737-
738737
describe "Delegate stake" $ do
739738
it "Register and delegate in the same transaction" $ do
740739
cred1 <- KeyHashObj <$> freshKeyHash

0 commit comments

Comments
 (0)