File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,7 @@ func (p *AllegraProtocolParameters) Update(paramUpdate *AllegraProtocolParameter
29
29
type AllegraProtocolParameterUpdate struct {
30
30
shelley.ShelleyProtocolParameterUpdate
31
31
}
32
+
33
+ func (u * AllegraProtocolParameterUpdate ) UnmarshalCBOR (data []byte ) error {
34
+ return u .UnmarshalCbor (data , u )
35
+ }
Original file line number Diff line number Diff line change @@ -513,6 +513,10 @@ type AlonzoProtocolParameterUpdate struct {
513
513
MaxCollateralInputs uint `cbor:"24,keyasint"`
514
514
}
515
515
516
+ func (u * AlonzoProtocolParameterUpdate ) UnmarshalCBOR (data []byte ) error {
517
+ return u .UnmarshalCbor (data , u )
518
+ }
519
+
516
520
func NewAlonzoBlockFromCbor (data []byte ) (* AlonzoBlock , error ) {
517
521
var alonzoBlock AlonzoBlock
518
522
if _ , err := cbor .Decode (data , & alonzoBlock ); err != nil {
Original file line number Diff line number Diff line change @@ -279,6 +279,10 @@ type ConwayProtocolParameterUpdate struct {
279
279
MinFeeRefScriptCostPerByte * cbor.Rat `cbor:"33,keyasint"`
280
280
}
281
281
282
+ func (u * ConwayProtocolParameterUpdate ) UnmarshalCBOR (data []byte ) error {
283
+ return u .UnmarshalCbor (data , u )
284
+ }
285
+
282
286
type PoolVotingThresholds struct {
283
287
cbor.StructAsArray
284
288
MotionNoConfidence cbor.Rat
Original file line number Diff line number Diff line change @@ -29,3 +29,7 @@ func (p *MaryProtocolParameters) Update(paramUpdate *MaryProtocolParameterUpdate
29
29
type MaryProtocolParameterUpdate struct {
30
30
allegra.AllegraProtocolParameterUpdate
31
31
}
32
+
33
+ func (u * MaryProtocolParameterUpdate ) UnmarshalCBOR (data []byte ) error {
34
+ return u .UnmarshalCbor (data , u )
35
+ }
You can’t perform that action at this time.
0 commit comments