File tree Expand file tree Collapse file tree 8 files changed +126
-270
lines changed
src/Cardano/Ledger/Shelley
testlib/Test/Cardano/Ledger/Shelley
src/Test/Cardano/Ledger/Shelley/Examples
test/Test/Cardano/Ledger/Shelley Expand file tree Collapse file tree 8 files changed +126
-270
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import Cardano.Ledger.BaseTypes (
3333 BlocksMade (.. ),
3434 Nonce (.. ),
3535 StrictMaybe (.. ),
36+ maybeToStrictMaybe ,
3637 mkNonceFromNumber ,
3738 strictMaybeToMaybe ,
3839 )
@@ -50,7 +51,7 @@ import Cardano.Ledger.Binary (
5051 )
5152import Cardano.Ledger.Core
5253import Cardano.Ledger.Shelley.Era (ShelleyEra )
53- import Cardano.Ledger.Shelley.Tx (ShelleyTx , segWitTx )
54+ import Cardano.Ledger.Shelley.Tx (ShelleyTx ( .. ) )
5455import Cardano.Ledger.Slot (SlotNo (.. ))
5556import Control.Monad (unless )
5657import Data.ByteString (ByteString )
@@ -225,7 +226,7 @@ instance EraTx era => DecCBOR (ShelleyTxSeq era) where
225226 )
226227 let txs =
227228 StrictSeq. forceToStrict $
228- Seq. zipWith3 segWitTx bodies wits auxData
229+ Seq. zipWith3 ShelleyTx bodies wits (maybeToStrictMaybe <$> auxData)
229230 pure $ TxSeq' txs bodiesBytes witsBytes auxDataBytes
230231
231232slotToNonce :: SlotNo -> Nonce
Original file line number Diff line number Diff line change 11module Cardano.Ledger.Shelley.Tx (
22 -- * Transaction
3- ShelleyTx (
4- MkShelleyTx ,
5- ShelleyTx ,
6- body ,
7- wits ,
8- auxiliaryData
9- ),
10- ShelleyTxRaw (.. ),
3+ ShelleyTx (.. ),
114 bodyShelleyTxL ,
125 witsShelleyTxL ,
136 auxDataShelleyTxL ,
147 sizeShelleyTxF ,
158 wireSizeShelleyTxF ,
16- segWitTx ,
179 mkBasicShelleyTx ,
1810 shelleyMinFeeTx ,
1911 witsFromTxWitnesses ,
You can’t perform that action at this time.
0 commit comments