File tree Expand file tree Collapse file tree 6 files changed +27
-0
lines changed Expand file tree Collapse file tree 6 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,10 @@ func (o AlonzoTransactionOutput) Address() common.Address {
324324 return o .OutputAddress
325325}
326326
327+ func (o AlonzoTransactionOutput ) GetScriptRef () * cbor.LazyValue {
328+ return nil
329+ }
330+
327331func (o AlonzoTransactionOutput ) Amount () uint64 {
328332 return o .OutputAmount .Amount
329333}
Original file line number Diff line number Diff line change @@ -486,6 +486,16 @@ func (o BabbageTransactionOutput) Address() common.Address {
486486 return o .OutputAddress
487487}
488488
489+ func (o BabbageTransactionOutput ) GetScriptRef () * cbor.LazyValue {
490+ if o .ScriptRef == nil {
491+ return nil
492+ }
493+ if lazyVal , ok := o .ScriptRef .Content .(* cbor.LazyValue ); ok {
494+ return lazyVal
495+ }
496+ return nil
497+ }
498+
489499func (o BabbageTransactionOutput ) Amount () uint64 {
490500 return o .OutputAmount .Amount
491501}
Original file line number Diff line number Diff line change @@ -414,6 +414,10 @@ func (o ByronTransactionOutput) Address() common.Address {
414414 return o .OutputAddress
415415}
416416
417+ func (o ByronTransactionOutput ) GetScriptRef () * cbor.LazyValue {
418+ return nil
419+ }
420+
417421func (o ByronTransactionOutput ) Amount () uint64 {
418422 return o .OutputAmount
419423}
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ type TransactionOutput interface {
7171 DatumHash () * Blake2b256
7272 Cbor () []byte
7373 Utxorpc () (* utxorpc.TxOutput , error )
74+ GetScriptRef () * cbor.LazyValue
7475}
7576
7677type TransactionWitnessSet interface {
Original file line number Diff line number Diff line change @@ -446,6 +446,10 @@ func (o MaryTransactionOutput) Address() common.Address {
446446 return o .OutputAddress
447447}
448448
449+ func (txo MaryTransactionOutput ) GetScriptRef () * cbor.LazyValue {
450+ return nil
451+ }
452+
449453func (o MaryTransactionOutput ) Amount () uint64 {
450454 return o .OutputAmount .Amount
451455}
Original file line number Diff line number Diff line change @@ -388,6 +388,10 @@ func (o ShelleyTransactionOutput) Address() common.Address {
388388 return o .OutputAddress
389389}
390390
391+ func (o ShelleyTransactionOutput ) GetScriptRef () * cbor.LazyValue {
392+ return nil
393+ }
394+
391395func (o ShelleyTransactionOutput ) Amount () uint64 {
392396 return o .OutputAmount
393397}
You can’t perform that action at this time.
0 commit comments