small reformatting

This commit is contained in:
Lars Brünjes 2021-07-28 21:07:01 +02:00
parent 01ed74dc2d
commit 8620b47b8c
No known key found for this signature in database
GPG key ID: B488B9045DC1A087

View file

@ -143,7 +143,7 @@ findSwaps oracle p = do
retrieveSwaps :: Oracle -> Contract w s Text ()
retrieveSwaps oracle = do
pkh <- pubKeyHash <$> ownPubKey
xs <- findSwaps oracle (== pkh)
xs <- findSwaps oracle (== pkh)
case xs of
[] -> logInfo @String "no swaps found"
_ -> do
@ -180,7 +180,7 @@ useSwap oracle = do
Constraints.mustPayToOtherScript
(validatorHash $ oracleValidator oracle)
(Datum $ PlutusTx.toBuiltinData x)
v <>
v <>
Constraints.mustPayToPubKey pkh' p
ledgerTx <- submitTxConstraintsWith @Swapping lookups tx
awaitTxConfirmed $ txId ledgerTx