@@ -220,12 +220,12 @@ func (b *BabbageTransactionBody) Outputs() []common.TransactionOutput {
220
220
return ret
221
221
}
222
222
223
- func (b * BabbageTransactionBody ) ProtocolParametersUpdate () map [common.Blake2b224 ]any {
224
- updateMap := make (map [common.Blake2b224 ]any )
223
+ func (b * BabbageTransactionBody ) ProtocolParameterUpdates () ( uint64 , map [common .Blake2b224 ]common. ProtocolParameterUpdate ) {
224
+ updateMap := make (map [common.Blake2b224 ]common. ProtocolParameterUpdate )
225
225
for k , v := range b .Update .ProtocolParamUpdates {
226
226
updateMap [k ] = v
227
227
}
228
- return updateMap
228
+ return b . Update . Epoch , updateMap
229
229
}
230
230
231
231
func (b * BabbageTransactionBody ) ReferenceInputs () []common.TransactionInput {
@@ -523,8 +523,8 @@ func (t BabbageTransaction) ValidityIntervalStart() uint64 {
523
523
return t .Body .ValidityIntervalStart ()
524
524
}
525
525
526
- func (t BabbageTransaction ) ProtocolParametersUpdate () map [common.Blake2b224 ]any {
527
- return t .Body .ProtocolParametersUpdate ()
526
+ func (t BabbageTransaction ) ProtocolParameterUpdates () ( uint64 , map [common .Blake2b224 ]common. ProtocolParameterUpdate ) {
527
+ return t .Body .ProtocolParameterUpdates ()
528
528
}
529
529
530
530
func (t BabbageTransaction ) ReferenceInputs () []common.TransactionInput {
@@ -685,6 +685,7 @@ type BabbageProtocolParameters struct {
685
685
}
686
686
687
687
type BabbageProtocolParameterUpdate struct {
688
+ cbor.DecodeStoreCbor
688
689
MinFeeA uint `cbor:"0,keyasint"`
689
690
MinFeeB uint `cbor:"1,keyasint"`
690
691
MaxBlockBodySize uint `cbor:"2,keyasint"`
@@ -713,6 +714,12 @@ type BabbageProtocolParameterUpdate struct {
713
714
MaxCollateralInputs uint `cbor:"24,keyasint"`
714
715
}
715
716
717
+ func (BabbageProtocolParameterUpdate ) IsProtocolParameterUpdate () {}
718
+
719
+ func (u * BabbageProtocolParameterUpdate ) UnmarshalCBOR (data []byte ) error {
720
+ return u .UnmarshalCbor (data , u )
721
+ }
722
+
716
723
func NewBabbageBlockFromCbor (data []byte ) (* BabbageBlock , error ) {
717
724
var babbageBlock BabbageBlock
718
725
if _ , err := cbor .Decode (data , & babbageBlock ); err != nil {
0 commit comments