File tree Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,9 @@ func (b *AllegraTransactionBody) ValidityIntervalStart() uint64 {
203
203
}
204
204
205
205
func (b * AllegraTransactionBody ) ProtocolParameterUpdates () (uint64 , map [common .Blake2b224 ]common.ProtocolParameterUpdate ) {
206
+ if b .Update == nil {
207
+ return 0 , nil
208
+ }
206
209
updateMap := make (map [common.Blake2b224 ]common.ProtocolParameterUpdate )
207
210
for k , v := range b .Update .ProtocolParamUpdates {
208
211
updateMap [k ] = v
Original file line number Diff line number Diff line change @@ -217,6 +217,9 @@ func (b *AlonzoTransactionBody) ValidityIntervalStart() uint64 {
217
217
}
218
218
219
219
func (b * AlonzoTransactionBody ) ProtocolParameterUpdates () (uint64 , map [common .Blake2b224 ]common.ProtocolParameterUpdate ) {
220
+ if b .Update == nil {
221
+ return 0 , nil
222
+ }
220
223
updateMap := make (map [common.Blake2b224 ]common.ProtocolParameterUpdate )
221
224
for k , v := range b .Update .ProtocolParamUpdates {
222
225
updateMap [k ] = v
Original file line number Diff line number Diff line change @@ -293,6 +293,9 @@ func (b *BabbageTransactionBody) ValidityIntervalStart() uint64 {
293
293
}
294
294
295
295
func (b * BabbageTransactionBody ) ProtocolParameterUpdates () (uint64 , map [common .Blake2b224 ]common.ProtocolParameterUpdate ) {
296
+ if b .Update == nil {
297
+ return 0 , nil
298
+ }
296
299
updateMap := make (map [common.Blake2b224 ]common.ProtocolParameterUpdate )
297
300
for k , v := range b .Update .ProtocolParamUpdates {
298
301
updateMap [k ] = v
Original file line number Diff line number Diff line change @@ -402,6 +402,9 @@ func (b *ConwayTransactionBody) ValidityIntervalStart() uint64 {
402
402
}
403
403
404
404
func (b * ConwayTransactionBody ) ProtocolParameterUpdates () (uint64 , map [common .Blake2b224 ]common.ProtocolParameterUpdate ) {
405
+ if b .Update == nil {
406
+ return 0 , nil
407
+ }
405
408
updateMap := make (map [common.Blake2b224 ]common.ProtocolParameterUpdate )
406
409
for k , v := range b .Update .ProtocolParamUpdates {
407
410
updateMap [k ] = v
Original file line number Diff line number Diff line change @@ -205,6 +205,9 @@ func (b *MaryTransactionBody) ValidityIntervalStart() uint64 {
205
205
}
206
206
207
207
func (b * MaryTransactionBody ) ProtocolParameterUpdates () (uint64 , map [common .Blake2b224 ]common.ProtocolParameterUpdate ) {
208
+ if b .Update == nil {
209
+ return 0 , nil
210
+ }
208
211
updateMap := make (map [common.Blake2b224 ]common.ProtocolParameterUpdate )
209
212
for k , v := range b .Update .ProtocolParamUpdates {
210
213
updateMap [k ] = v
Original file line number Diff line number Diff line change @@ -261,6 +261,9 @@ func (b *ShelleyTransactionBody) TTL() uint64 {
261
261
}
262
262
263
263
func (b * ShelleyTransactionBody ) ProtocolParameterUpdates () (uint64 , map [common .Blake2b224 ]common.ProtocolParameterUpdate ) {
264
+ if b .Update == nil {
265
+ return 0 , nil
266
+ }
264
267
updateMap := make (map [common.Blake2b224 ]common.ProtocolParameterUpdate )
265
268
for k , v := range b .Update .ProtocolParamUpdates {
266
269
updateMap [k ] = v
You can’t perform that action at this time.
0 commit comments