File tree Expand file tree Collapse file tree 6 files changed +28
-1
lines changed Expand file tree Collapse file tree 6 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,10 @@ func (o AlonzoTransactionOutput) Address() common.Address {
324
324
return o .OutputAddress
325
325
}
326
326
327
+ func (o AlonzoTransactionOutput ) ScriptRef () * cbor.LazyValue {
328
+ return nil
329
+ }
330
+
327
331
func (o AlonzoTransactionOutput ) Amount () uint64 {
328
332
return o .OutputAmount .Amount
329
333
}
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ type BabbageTransactionOutput struct {
423
423
OutputAddress common.Address `cbor:"0,keyasint,omitempty"`
424
424
OutputAmount mary.MaryTransactionOutputValue `cbor:"1,keyasint,omitempty"`
425
425
DatumOption * BabbageTransactionOutputDatumOption `cbor:"2,keyasint,omitempty"`
426
- ScriptRef * cbor.Tag `cbor:"3,keyasint,omitempty"`
426
+ TxScriptRef * cbor.Tag `cbor:"3,keyasint,omitempty"`
427
427
legacyOutput bool
428
428
}
429
429
@@ -486,6 +486,16 @@ func (o BabbageTransactionOutput) Address() common.Address {
486
486
return o .OutputAddress
487
487
}
488
488
489
+ func (o BabbageTransactionOutput ) ScriptRef () * cbor.LazyValue {
490
+ if o .TxScriptRef == nil {
491
+ return nil
492
+ }
493
+ if lazyVal , ok := o .TxScriptRef .Content .(* cbor.LazyValue ); ok {
494
+ return lazyVal
495
+ }
496
+ return nil
497
+ }
498
+
489
499
func (o BabbageTransactionOutput ) Amount () uint64 {
490
500
return o .OutputAmount .Amount
491
501
}
Original file line number Diff line number Diff line change @@ -414,6 +414,10 @@ func (o ByronTransactionOutput) Address() common.Address {
414
414
return o .OutputAddress
415
415
}
416
416
417
+ func (o ByronTransactionOutput ) ScriptRef () * cbor.LazyValue {
418
+ return nil
419
+ }
420
+
417
421
func (o ByronTransactionOutput ) Amount () uint64 {
418
422
return o .OutputAmount
419
423
}
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ type TransactionOutput interface {
71
71
DatumHash () * Blake2b256
72
72
Cbor () []byte
73
73
Utxorpc () (* utxorpc.TxOutput , error )
74
+ ScriptRef () * cbor.LazyValue
74
75
}
75
76
76
77
type TransactionWitnessSet interface {
Original file line number Diff line number Diff line change @@ -446,6 +446,10 @@ func (o MaryTransactionOutput) Address() common.Address {
446
446
return o .OutputAddress
447
447
}
448
448
449
+ func (txo MaryTransactionOutput ) ScriptRef () * cbor.LazyValue {
450
+ return nil
451
+ }
452
+
449
453
func (o MaryTransactionOutput ) Amount () uint64 {
450
454
return o .OutputAmount .Amount
451
455
}
Original file line number Diff line number Diff line change @@ -388,6 +388,10 @@ func (o ShelleyTransactionOutput) Address() common.Address {
388
388
return o .OutputAddress
389
389
}
390
390
391
+ func (o ShelleyTransactionOutput ) ScriptRef () * cbor.LazyValue {
392
+ return nil
393
+ }
394
+
391
395
func (o ShelleyTransactionOutput ) Amount () uint64 {
392
396
return o .OutputAmount
393
397
}
You can’t perform that action at this time.
0 commit comments