Skip to content

Commit e8cbffa

Browse files
Soupstrawlehins
andauthored
Update eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Tx.hs
Co-authored-by: Alexey Kuleshevich <[email protected]>
1 parent 602bda5 commit e8cbffa

File tree

1 file changed

+2
-2
lines changed
  • eras/alonzo/impl/src/Cardano/Ledger/Alonzo

1 file changed

+2
-2
lines changed

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Tx.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ auxDataAlonzoTxL = lens atAuxData (\tx txTxAuxData -> tx {atAuxData = txTxAuxDat
218218
{-# INLINEABLE auxDataAlonzoTxL #-}
219219

220220
-- | txsize computes the length of the serialised bytes (for estimations)
221-
sizeAlonzoTxF :: forall era. EraTx era => SimpleGetter (AlonzoTx era) Word32
221+
sizeAlonzoTxF :: forall era. (HasCallStack, EraTx era) => SimpleGetter (AlonzoTx era) Word32
222222
sizeAlonzoTxF =
223223
to $
224-
fromIntegral
224+
errorFail $ integralToBounded @Word64 @Word32
225225
. LBS.length
226226
. serialize (eraProtVerLow @era)
227227
. toCBORForSizeComputation

0 commit comments

Comments
 (0)