small fixes

This commit is contained in:
Lars Brünjes 2021-05-12 18:18:29 +02:00
parent 54e726eb95
commit 1c89741926
No known key found for this signature in database
GPG key ID: B488B9045DC1A087
3 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,6 @@
module Main
( main
, OracleContracts
) where
import Control.Monad (forM_, void, when)

View file

@ -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

View file

@ -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