Skip to content

Commit

Permalink
impl skeleton of calcScriptExecutionCost
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed Sep 14, 2021
1 parent ec6c3f1 commit 7fac98b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/shelley/src/Cardano/Wallet/Shelley/Transaction.hs
Expand Up @@ -384,7 +384,8 @@ newTransactionLayer networkId = TransactionLayer
estimateTxCost pp $
mkTxSkeleton (txWitnessTagFor @k) ctx skeleton

, calcScriptExecutionCost = \_pp _sealedTx -> undefined
, calcScriptExecutionCost =
_calcScriptExecutionCost

, computeSelectionLimit = \pp ctx outputsToCover ->
let txMaxSize = getTxMaxSize $ txParameters pp in
Expand Down Expand Up @@ -483,6 +484,14 @@ dummySkeleton inputCount outputs = SelectionSkeleton
TokenBundle.getAssets . view #tokens <$> outputs
}

_calcScriptExecutionCost
:: ProtocolParameters
-> SealedTx
-> Coin
_calcScriptExecutionCost pp _sealedTx = undefined
where
_prices = view #executionUnitPrices pp

_decodeSignedTx
:: AnyCardanoEra
-> ByteString
Expand Down

0 comments on commit 7fac98b

Please sign in to comment.