Skip to content

Commit

Permalink
test: Minor stylistic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetruska committed Aug 4, 2024
1 parent 6a2585a commit 6ba9752
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion plutarch-design-pattern.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ common test-dependencies
, hedgehog
, hedgehog-quickcheck
, liqwid-plutarch-extra
, optics
, plutarch
, plutarch-context-builder
, plutarch-extra
Expand Down
5 changes: 2 additions & 3 deletions test/Spec/MerkelizedValidatorSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import PlutusLedgerApi.V2 (
BuiltinByteString,
Credential (..),
ScriptContext,
ScriptHash (..),
ScriptPurpose (..),
StakingCredential (..),
)
Expand Down Expand Up @@ -171,7 +170,7 @@ prop_withdrawValidator = forAll withdrawInput check
#$ pdcons @"outputState"
# pdata outputState
# pdnil
cred = StakingHash (ScriptCredential (ScriptHash bs))
cred = mkStakingHashFromByteString bs
context :: ClosedTerm PScriptContext
context = pconstant (withdrawCtxWithCred cred)
in fromPPartial $ withdraw # pforgetData (pdata redeemer) # context
Expand All @@ -185,7 +184,7 @@ prop_spendValidator = forAll spendInput check
bs <- genByteString 56
return (x, y, bs)
check (x :: Integer, y :: Integer, bs :: BuiltinByteString) =
let cred = StakingHash (ScriptCredential (ScriptHash bs))
let cred = mkStakingHashFromByteString bs
redeemer =
MerkelizedValidator.WithdrawRedeemer
{ inputState = [PlutusTx.toBuiltinData x, PlutusTx.toBuiltinData y]
Expand Down
2 changes: 1 addition & 1 deletion test/Spec/MultiUTxOIndexerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ unitTest = tryFromPTerm "Multi UTxI Indexer Unit Test" validator $ do
mkInputUTxO :: BuiltinByteString -> BuiltinByteString -> UTXO
mkInputUTxO txId valHash =
mconcat
[ address (Address (ScriptCredential (ScriptHash valHash)) Nothing)
[ address (mkAddressFromByteString valHash)
, withRefTxId (TxId txId)
, withRefIndex 0
]
Expand Down

0 comments on commit 6ba9752

Please sign in to comment.