mirror of
https://github.com/FiloSpaTeam/plutus-pioneer-program.git
synced 2024-11-24 15:52:00 +01:00
small reformatting
This commit is contained in:
parent
01ed74dc2d
commit
8620b47b8c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue