@@ -486,15 +486,15 @@ impl ReadableArgs<u32> for PaymentParameters {
486
486
( 9 , final_cltv_expiry_delta, ( default_value, default_final_cltv_expiry_delta) ) ,
487
487
} ) ;
488
488
Ok ( Self {
489
- payee_pubkey : payee_pubkey . 0 . unwrap ( ) ,
490
- max_total_cltv_expiry_delta : max_total_cltv_expiry_delta. 0 . unwrap ( ) ,
489
+ payee_pubkey : _init_tlv_based_struct_field ! ( payee_pubkey , required ) ,
490
+ max_total_cltv_expiry_delta : _init_tlv_based_struct_field ! ( max_total_cltv_expiry_delta, ( default_value , unused ) ) ,
491
491
features,
492
- max_path_count : max_path_count. 0 . unwrap ( ) ,
492
+ max_path_count : _init_tlv_based_struct_field ! ( max_path_count, ( default_value , unused ) ) ,
493
493
route_hints : route_hints. unwrap_or ( Vec :: new ( ) ) ,
494
- max_channel_saturation_power_of_half : max_channel_saturation_power_of_half. 0 . unwrap ( ) ,
494
+ max_channel_saturation_power_of_half : _init_tlv_based_struct_field ! ( max_channel_saturation_power_of_half, ( default_value , unused ) ) ,
495
495
expiry_time,
496
496
previously_failed_channels : previously_failed_channels. unwrap_or ( Vec :: new ( ) ) ,
497
- final_cltv_expiry_delta : final_cltv_expiry_delta. 0 . unwrap ( ) ,
497
+ final_cltv_expiry_delta : _init_tlv_based_struct_field ! ( final_cltv_expiry_delta, ( default_value , unused ) ) ,
498
498
} )
499
499
}
500
500
}
0 commit comments