@@ -462,7 +462,7 @@ impl Writeable for Event {
462
462
write_tlv_fields ! ( writer, {
463
463
( 0 , payment_id, required) ,
464
464
( 2 , payment_hash, option) ,
465
- ( 4 , VecWriteWrapper ( path) , required )
465
+ ( 4 , path, vec_type )
466
466
} )
467
467
} ,
468
468
// Note that, going forward, all new events must only write data inside of
@@ -631,13 +631,17 @@ impl MaybeReadable for Event {
631
631
let f = || {
632
632
let mut payment_id = PaymentId ( [ 0 ; 32 ] ) ;
633
633
let mut payment_hash = None ;
634
- let mut path = VecReadWrapper ( Vec :: new ( ) ) ;
634
+ let mut path: Option < Vec < RouteHop > > = Some ( vec ! [ ] ) ;
635
635
read_tlv_fields ! ( reader, {
636
636
( 0 , payment_id, required) ,
637
637
( 2 , payment_hash, option) ,
638
- ( 4 , path, required ) ,
638
+ ( 4 , path, vec_type ) ,
639
639
} ) ;
640
- Ok ( Some ( Event :: PaymentPathSuccessful { payment_id, payment_hash, path : path. 0 } ) )
640
+ Ok ( Some ( Event :: PaymentPathSuccessful {
641
+ payment_id,
642
+ payment_hash,
643
+ path : path. unwrap ( ) ,
644
+ } ) )
641
645
} ;
642
646
f ( )
643
647
} ,
0 commit comments