@@ -175,10 +175,10 @@ func (h *BabbageBlockHeader) Era() Era {
175175
176176type BabbageTransactionBody struct {
177177 AlonzoTransactionBody
178- TxOutputs []BabbageTransactionOutput `cbor:"1,keyasint,omitempty"`
179- CollateralReturn BabbageTransactionOutput `cbor:"16,keyasint,omitempty"`
180- TotalCollateral uint64 `cbor:"17,keyasint,omitempty"`
181- ReferenceInputs []ShelleyTransactionInput `cbor:"18,keyasint,omitempty"`
178+ TxOutputs []BabbageTransactionOutput `cbor:"1,keyasint,omitempty"`
179+ CollateralReturn BabbageTransactionOutput `cbor:"16,keyasint,omitempty"`
180+ TotalCollateral uint64 `cbor:"17,keyasint,omitempty"`
181+ TxReferenceInputs []ShelleyTransactionInput `cbor:"18,keyasint,omitempty"`
182182}
183183
184184func (b * BabbageTransactionBody ) UnmarshalCBOR (cborData []byte ) error {
@@ -194,6 +194,15 @@ func (b *BabbageTransactionBody) Outputs() []TransactionOutput {
194194 return ret
195195}
196196
197+ func (b * BabbageTransactionBody ) ReferenceInputs () []TransactionInput {
198+ ret := []TransactionInput {}
199+ for _ , input := range b .TxReferenceInputs {
200+ input := input
201+ ret = append (ret , & input )
202+ }
203+ return ret
204+ }
205+
197206const (
198207 DatumOptionTypeHash = 0
199208 DatumOptionTypeData = 1
@@ -375,6 +384,10 @@ func (t BabbageTransaction) TTL() uint64 {
375384 return t .Body .TTL ()
376385}
377386
387+ func (t BabbageTransaction ) ReferenceInputs () []TransactionInput {
388+ return t .Body .ReferenceInputs ()
389+ }
390+
378391func (t BabbageTransaction ) Metadata () * cbor.Value {
379392 return t .TxMetadata
380393}
0 commit comments