@@ -181,9 +181,9 @@ type BabbageTransactionBody struct {
181181 ProtocolParamUpdates map [Blake2b224 ]BabbageProtocolParameterUpdate
182182 Epoch uint64
183183 } `cbor:"6,keyasint,omitempty"`
184- CollateralReturn BabbageTransactionOutput `cbor:"16,keyasint,omitempty"`
185- TotalCollateral uint64 `cbor:"17,keyasint,omitempty"`
186- TxReferenceInputs []ShelleyTransactionInput `cbor:"18,keyasint,omitempty"`
184+ TxCollateralReturn * BabbageTransactionOutput `cbor:"16,keyasint,omitempty"`
185+ TotalCollateral uint64 `cbor:"17,keyasint,omitempty"`
186+ TxReferenceInputs []ShelleyTransactionInput `cbor:"18,keyasint,omitempty"`
187187}
188188
189189func (b * BabbageTransactionBody ) UnmarshalCBOR (cborData []byte ) error {
@@ -208,6 +208,10 @@ func (b *BabbageTransactionBody) ReferenceInputs() []TransactionInput {
208208 return ret
209209}
210210
211+ func (b * BabbageTransactionBody ) CollateralReturn () TransactionOutput {
212+ return b .TxCollateralReturn
213+ }
214+
211215func (b * BabbageTransactionBody ) Utxorpc () * utxorpc.Tx {
212216 var txi , txri []* utxorpc.TxInput
213217 var txo []* utxorpc.TxOutput
@@ -430,6 +434,10 @@ func (t BabbageTransaction) ReferenceInputs() []TransactionInput {
430434 return t .Body .ReferenceInputs ()
431435}
432436
437+ func (t BabbageTransaction ) CollateralReturn () TransactionOutput {
438+ return t .Body .CollateralReturn ()
439+ }
440+
433441func (t BabbageTransaction ) Metadata () * cbor.Value {
434442 return t .TxMetadata
435443}
0 commit comments