mirror of
https://github.com/FiloSpaTeam/plutus-pioneer-program.git
synced 2024-11-14 02:42:35 +01:00
small fixes
This commit is contained in:
parent
54e726eb95
commit
1c89741926
3 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,6 @@
|
|||
|
||||
module Main
|
||||
( main
|
||||
, OracleContracts
|
||||
) where
|
||||
|
||||
import Control.Monad (forM_, void, when)
|
||||
|
|
|
@ -44,7 +44,7 @@ main = do
|
|||
|
||||
readCommand :: IO Command
|
||||
readCommand = do
|
||||
putStr "enter command (Offer amt, Retrieve or Use): "
|
||||
putStr "enter command (Offer amt, Retrieve, Use or Funds): "
|
||||
s <- getLine
|
||||
maybe readCommand return $ readMaybe s
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ ownFunds :: HasBlockchainActions s => Contract w s Text Value
|
|||
ownFunds = do
|
||||
pk <- ownPubKey
|
||||
utxos <- utxoAt $ pubKeyAddress pk
|
||||
let v = mconcat $ Map.elems $ txOutValue . txOutTxOut <$> utxos
|
||||
let v = mconcat $ Map.elems $ txOutValue . txOutTxOut <$> utxos
|
||||
logInfo @String $ "own funds: " ++ show (Value.flattenValue v)
|
||||
return v
|
||||
|
||||
|
|
Loading…
Reference in a new issue