@@ -502,34 +502,20 @@ impl LegacyProgram {
502
502
compiler_version : & ' a Option < String > ,
503
503
#[ serde_as( as = "Vec<UfeHex>" ) ]
504
504
data : & ' a Vec < Felt > ,
505
- // Needed due to pathfinder bug:
506
- // https://github.com/eqlabs/pathfinder/issues/1371
507
- debug_info : EmptyDebugInfo ,
505
+ debug_info : Option < ( ) > ,
508
506
hints : & ' a BTreeMap < u64 , Vec < LegacyHint > > ,
509
507
identifiers : & ' a BTreeMap < String , LegacyIdentifier > ,
510
508
main_scope : & ' a String ,
511
509
prime : & ' a String ,
512
510
reference_manager : & ' a LegacyReferenceManager ,
513
511
}
514
512
515
- #[ derive( Serialize ) ]
516
- pub struct EmptyDebugInfo {
517
- file_contents : Unit ,
518
- instruction_locations : Unit ,
519
- }
520
-
521
- #[ derive( Serialize ) ]
522
- pub struct Unit { }
523
-
524
513
let program_json = serde_json:: to_string ( & ProgramWithoutDebugInfo {
525
514
attributes : & self . attributes ,
526
515
builtins : & self . builtins ,
527
516
compiler_version : & self . compiler_version ,
528
517
data : & self . data ,
529
- debug_info : EmptyDebugInfo {
530
- file_contents : Unit { } ,
531
- instruction_locations : Unit { } ,
532
- } ,
518
+ debug_info : None ,
533
519
hints : & self . hints ,
534
520
identifiers : & self . identifiers ,
535
521
main_scope : & self . main_scope ,
0 commit comments