@@ -121,10 +121,10 @@ func (h *ConwayBlockHeader) Era() Era {
121121
122122type ConwayTransactionBody struct {
123123 BabbageTransactionBody
124- TxVotingProcedures VotingProcedures `cbor:"19,keyasint,omitempty"`
125- TxProposalProcedures []ProposalProcedure `cbor:"20,keyasint,omitempty"`
126- CurrentTreasuryValue int64 `cbor:"21,keyasint,omitempty"`
127- Donation uint64 `cbor:"22,keyasint,omitempty"`
124+ TxVotingProcedures VotingProcedures `cbor:"19,keyasint,omitempty"`
125+ TxProposalProcedures []ProposalProcedure `cbor:"20,keyasint,omitempty"`
126+ TxCurrentTreasuryValue int64 `cbor:"21,keyasint,omitempty"`
127+ Donation uint64 `cbor:"22,keyasint,omitempty"`
128128}
129129
130130func (b * ConwayTransactionBody ) UnmarshalCBOR (cborData []byte ) error {
@@ -139,6 +139,10 @@ func (b *ConwayTransactionBody) ProposalProcedures() []ProposalProcedure {
139139 return b .TxProposalProcedures
140140}
141141
142+ func (b * ConwayTransactionBody ) CurrentTreasuryValue () int64 {
143+ return b .TxCurrentTreasuryValue
144+ }
145+
142146// VotingProcedures is a convenience type to avoid needing to duplicate the full type definition everywhere
143147type VotingProcedures map [* Voter ]map [* GovActionId ]VotingProcedure
144148
@@ -397,6 +401,10 @@ func (t ConwayTransaction) ProposalProcedures() []ProposalProcedure {
397401 return t .Body .ProposalProcedures ()
398402}
399403
404+ func (t ConwayTransaction ) CurrentTreasuryValue () int64 {
405+ return t .Body .CurrentTreasuryValue ()
406+ }
407+
400408func (t ConwayTransaction ) Metadata () * cbor.LazyValue {
401409 return t .TxMetadata
402410}
0 commit comments