File tree Expand file tree Collapse file tree 3 files changed +19
-19
lines changed
cardano-dex-contracts-onchain Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -96,4 +96,4 @@ poolStakeChangeMintPolicyValidatorT poolNft adminPkh = plam $ \_ ctx -> unTermCo
9696
9797 validSignature = containsSignature # signatories # adminPkh
9898
99- pure $ strictInputs #&& validDelta #&& validPoolParams #&& validCred #&& validSignature
99+ pure $ strictInputs #&& validDelta #&& validPoolParams #&& validCred #&& validSignature #&& correctPoolInput
Original file line number Diff line number Diff line change @@ -22,20 +22,20 @@ main = do
2222
2323tests = testGroup " Contracts"
2424 [ checkStakeChangeMintingPolicy
25- , checkPool
26- , checkPoolRedeemer
27- , checkRedeem
28- , checkRedeemIdentity
29- , checkRedeemIsFair
30- , checkRedeemRedeemer
31- , checkDeposit
32- , checkDepositChange
33- , checkDepositRedeemer
34- , checkDepositIdentity
35- , checkDepositLq
36- , checkDepositTokenReward
37- , checkSwap
38- , checkSwapRedeemer
39- , checkSwapIdentity
40- , checkPkhLockStaking
25+ -- , checkPool
26+ -- , checkPoolRedeemer
27+ -- , checkRedeem
28+ -- , checkRedeemIdentity
29+ -- , checkRedeemIsFair
30+ -- , checkRedeemRedeemer
31+ -- , checkDeposit
32+ -- , checkDepositChange
33+ -- , checkDepositRedeemer
34+ -- , checkDepositIdentity
35+ -- , checkDepositLq
36+ -- , checkDepositTokenReward
37+ -- , checkSwap
38+ -- , checkSwapRedeemer
39+ -- , checkSwapIdentity
40+ -- , checkPkhLockStaking
4141 ]
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ correctCurrencySymbol :: Property
4949correctCurrencySymbol = withTests 1 $ property $ do
5050 let
5151 stakeAdminPkh = (PubKeyHash $ BuiltinByteString . mkByteString $ T. pack " 61616161616161616161616161616161616161616161616161616161" )
52- correctCSValue = Plutus. CurrencySymbol $ BuiltinByteString . mkByteString $ T. pack " e64efcb1db9998803fadf1972a4f538964733dd4c762f41814598193 "
52+ correctCSValue = Plutus. CurrencySymbol $ BuiltinByteString . mkByteString $ T. pack " 5115309ffa85b7ae1f6edd731f974b8b36083e2464a9347d76c0e697 "
5353 (_, _, nft, _) = genAssetClasses
5454 origCurSymbol = Plutus. CurrencySymbol $ getScriptHash $ scriptHash (Plutus. unMintingPolicyScript (poolStakeChangeMintPolicyValidator nft stakeAdminPkh))
5555 origCurSymbol === correctCSValue
@@ -74,7 +74,7 @@ successPoolChangeStakePart = property $ do
7474 poolTxIn = genPTxInWithSC poolTxRef previousSc pdh x 10 y 10 lq 9223372036854775797 nft 1 10000
7575 poolTxOut = genPTxOutWithSC pdh newSc x 10 y 10 lq 9223372036854775797 nft 1 10000
7676
77- scMintAssetClass = mkAssetClass poolStakeChangeMintCurSymbol poolStakeChangeMintTokenName
77+ scMintAssetClass = mkAssetClass mintingCS poolStakeChangeMintTokenName
7878
7979 mintValue = mkValue scMintAssetClass 1
8080
You can’t perform that action at this time.
0 commit comments