Skip to content

Commit

Permalink
remove basicValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
vvtran committed Jan 18, 2022
1 parent e31ffde commit 189d534
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/PreBalanceTx.purs
Expand Up @@ -148,24 +148,6 @@ preBalanceTxM ownAddr addReqSigners requiredAddrs unbalancedTx = do
-- then pure balancedTx
-- else loop utxoIndex privKeys requiredSigs minUtxos balancedTx

-- -- https://github.com/input-output-hk/cardano-ledger/blob/master/eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Tools.hs
-- -- | Checks all inputs are contained in utxos.
-- basicValidation
-- :: Transaction
-- -- | The current UTxO set (or the relevant portion for the transaction).
-- -> Utxo
-- -> Maybe String
-- basicValidation tx utxo =
-- if Array.null badInputs
-- then Nothing
-- else Just $ "The following inputs are not part of utxo map" <> show badInputs
-- where
-- txInputs :: Array TransactionInput
-- txInputs = _.inputs <<< unwrap <<< _.body <<< unwrap $ tx

-- badInputs :: Array TransactionInput
-- badInputs = Array.filter (not <<< flip Map.member utxo) txInputs

buildTx :: TxBody -> Either String Transaction
buildTx = undefined

Expand Down

0 comments on commit 189d534

Please sign in to comment.