Skip to content

Commit fce7e8b

Browse files
committed
Move a conwayEraSpecificSpec testcase
1 parent 17b9744 commit fce7e8b

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
@@ -727,15 +735,6 @@ conwayEraSpecificSpec ::
727735
) =>
728736
SpecWith (ImpInit (LedgerSpec era))
729737
conwayEraSpecificSpec = do
730-
describe "Register stake credential" $ do
731-
it "Without any deposit" $ do
732-
cred <- KeyHashObj <$> freshKeyHash
733-
regTxCert <- genRegTxCert cred
734-
submitTx_ $
735-
mkBasicTx mkBasicTxBody
736-
& bodyTxL . certsTxBodyL .~ [regTxCert]
737-
expectRegistered cred
738-
739738
describe "Delegate stake" $ do
740739
it "Register and delegate in the same transaction" $ do
741740
cred1 <- KeyHashObj <$> freshKeyHash

0 commit comments

Comments
 (0)