Skip to content

Commit

Permalink
some review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ak3n committed May 23, 2022
1 parent 950e0da commit e562e0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion plutus-ledger-constraints/plutus-ledger-constraints.cabal
Expand Up @@ -44,7 +44,6 @@ library
build-depends:
base >=4.9 && <5,
aeson -any,
cardano-api -any,
containers -any,
lens -any,
mtl -any,
Expand Down
1 change: 1 addition & 0 deletions plutus-pab-executables/plutus-pab-executables.cabal
Expand Up @@ -372,6 +372,7 @@ executable tx-inject
default-language: Haskell2010
build-depends:
base >=4.9 && <5,
data-default -any,
plutus-pab,
containers -any,
clock -any,
Expand Down
4 changes: 3 additions & 1 deletion plutus-pab-executables/tx-inject/TxInject/RandomTx.hs
Expand Up @@ -10,6 +10,7 @@ module TxInject.RandomTx(
) where

import Control.Monad.Primitive (PrimMonad, PrimState)
import Data.Default (def)
import Data.List.NonEmpty (NonEmpty (..))
import Data.Map qualified as Map
import Data.Maybe (fromMaybe)
Expand All @@ -23,6 +24,7 @@ import Ledger.Address qualified as Address
import Ledger.CardanoWallet qualified as CW
import Ledger.Generators qualified as Generators
import Ledger.Index (UtxoIndex (..), ValidationCtx (..), runValidation, validateTransaction)
import Ledger.Params (Params (pSlotConfig))
import Ledger.Slot (Slot (..))
import Ledger.Tx (Tx, TxOut (..))
import Ledger.Tx qualified as Tx
Expand Down Expand Up @@ -88,7 +90,7 @@ generateTx gen slot (UtxoIndex utxo) = do
Generators.genValidTransactionSpending sourceTxIns sourceAda
slotCfg <- Gen.sample Generators.genSlotConfig
let ((validationResult, _), _) =
runValidation (validateTransaction slot tx) (ValidationCtx (UtxoIndex utxo) slotCfg)
runValidation (validateTransaction slot tx) (ValidationCtx (UtxoIndex utxo) (def { pSlotConfig = slotCfg }))
case validationResult of
Nothing -> pure tx
Just _ -> generateTx gen slot (UtxoIndex utxo)
Expand Down
1 change: 0 additions & 1 deletion plutus-pab/src/Plutus/PAB/Run/Cli.hs
Expand Up @@ -111,7 +111,6 @@ runConfigCommand _ ConfigCommandArgs{ccaTrace, ccaPABConfig=Config{dbConfig}} Mi
-- Run mock wallet service
runConfigCommand _ ConfigCommandArgs{ccaTrace, ccaPABConfig = Config {nodeServerConfig, chainIndexConfig, walletServerConfig = LocalWalletConfig ws},ccaAvailability} MockWallet = do
params <- liftIO $ Params.fromPABServerConfig nodeServerConfig
-- = Params { pSlotConfig = pscSlotConfig nodeServerConfig, pProtocolParams = protocolParameters, pNetworkId = networkId }
liftIO $ WalletServer.main
(toWalletLog ccaTrace)
ws
Expand Down

0 comments on commit e562e0b

Please sign in to comment.