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