mirror of
https://github.com/FiloSpaTeam/plutus-pioneer-program.git
synced 2024-11-21 22:32:00 +01:00
small improvements
This commit is contained in:
parent
d8678326a8
commit
ba40342f1d
2 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,5 @@
|
|||
module Week08.QuickCheck where
|
||||
|
||||
import Test.QuickCheck
|
||||
|
||||
prop_simple :: Bool
|
||||
prop_simple = 2 + 2 == (4 :: Int)
|
||||
|
||||
|
|
|
@ -72,8 +72,8 @@ transition ts s r = case (stateValue s, stateData s, r) of
|
|||
)
|
||||
(v, p, AddTokens n) | n > 0 -> Just ( mempty
|
||||
, State p $
|
||||
v <>
|
||||
nft (negate 1) <>
|
||||
v <>
|
||||
nft (negate 1) <>
|
||||
assetClassValue (tsToken ts) n
|
||||
)
|
||||
(v, p, BuyTokens n) | n > 0 -> Just ( mempty
|
||||
|
|
Loading…
Reference in a new issue