Commit d514f44 1 parent 96c0865 commit d514f44 Copy full SHA for d514f44
File tree 3 files changed +13
-0
lines changed
assets/denopkgs/v2AlphaOuraUtils
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export type TransactionRecord = {
92
92
outputs : TxOutputRecord [ ] | null ;
93
93
collateral_inputs : TxInputRecord [ ] | null ;
94
94
collateral_output : TxOutputRecord | null ;
95
+ reference_inputs : TxInputRecord [ ] | null ;
95
96
mint : MintRecord [ ] | null ;
96
97
vkey_witnesses : VKeyWitnessRecord [ ] | null ;
97
98
native_witnesses : NativeWitnessRecord [ ] | null ;
Original file line number Diff line number Diff line change @@ -290,6 +290,17 @@ impl EventWriter<'_> {
290
290
. map ( |x| self . to_withdrawal_record ( * x) )
291
291
. collect :: < Vec < _ > > ( )
292
292
. into ( ) ;
293
+
294
+ record. reference_inputs = if tx. reference_inputs ( ) . is_empty ( ) {
295
+ None
296
+ } else {
297
+ Some (
298
+ tx. reference_inputs ( )
299
+ . iter ( )
300
+ . map ( TxInputRecord :: from)
301
+ . collect ( ) ,
302
+ )
303
+ } ;
293
304
}
294
305
295
306
record
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ pub struct TransactionRecord {
178
178
pub outputs : Option < Vec < TxOutputRecord > > ,
179
179
pub collateral_inputs : Option < Vec < TxInputRecord > > ,
180
180
pub collateral_output : Option < TxOutputRecord > ,
181
+ pub reference_inputs : Option < Vec < TxInputRecord > > ,
181
182
pub mint : Option < Vec < MintRecord > > ,
182
183
pub vkey_witnesses : Option < Vec < VKeyWitnessRecord > > ,
183
184
pub native_witnesses : Option < Vec < NativeWitnessRecord > > ,
You can’t perform that action at this time.
0 commit comments