Skip to content

Commit

Permalink
Remove unused function restrictResolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed May 8, 2024
1 parent 49fc8eb commit 253774a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/balance-tx/test/spec/Internal/Cardano/Write/Tx/BalanceSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1845,17 +1845,6 @@ paymentPartialTx txouts =
& outputsTxBodyL .~
StrictSeq.fromList (Convert.toBabbageTxOut <$> txouts)

-- | Restricts the inputs list of the 'PartialTx' to the inputs of the
-- underlying CBOR transaction. This allows us to "fix" the 'PartialTx' after
-- shrinking the CBOR.
--
-- NOTE: Perhaps ideally 'PartialTx' would handle this automatically.
restrictResolution :: IsRecentEra era => PartialTx era -> PartialTx era
restrictResolution partialTx@PartialTx {tx, extraUTxO} = partialTx
{extraUTxO = UTxO $ unUTxO extraUTxO `Map.restrictKeys` txIns}
where
txIns = tx ^. bodyTxL . inputsTxBodyL

serializedSize
:: forall era. IsRecentEra era
=> Tx era
Expand Down

0 comments on commit 253774a

Please sign in to comment.