@@ -128,7 +128,7 @@ type AlonzoTransactionBody struct {
128128 ProtocolParamUpdates map [Blake2b224 ]AlonzoProtocolParameterUpdate
129129 Epoch uint64
130130 } `cbor:"6,keyasint,omitempty"`
131- ScriptDataHash Blake2b256 `cbor:"11,keyasint,omitempty"`
131+ TxScriptDataHash * Blake2b256 `cbor:"11,keyasint,omitempty"`
132132 TxCollateral []ShelleyTransactionInput `cbor:"13,keyasint,omitempty"`
133133 TxRequiredSigners []Blake2b224 `cbor:"14,keyasint,omitempty"`
134134 NetworkId uint8 `cbor:"15,keyasint,omitempty"`
@@ -159,6 +159,10 @@ func (b *AlonzoTransactionBody) RequiredSigners() []Blake2b224 {
159159 return b .TxRequiredSigners [:]
160160}
161161
162+ func (b * AlonzoTransactionBody ) ScriptDataHash () * Blake2b256 {
163+ return b .TxScriptDataHash
164+ }
165+
162166type AlonzoTransactionOutput struct {
163167 cbor.StructAsArray
164168 cbor.DecodeStoreCbor
@@ -300,6 +304,10 @@ func (t AlonzoTransaction) AssetMint() *MultiAsset[MultiAssetTypeMint] {
300304 return t .Body .AssetMint ()
301305}
302306
307+ func (t AlonzoTransaction ) ScriptDataHash () * Blake2b256 {
308+ return t .Body .ScriptDataHash ()
309+ }
310+
303311func (t AlonzoTransaction ) VotingProcedures () VotingProcedures {
304312 return t .Body .VotingProcedures ()
305313}
0 commit comments