File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compilers/src/artifact_output Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl FromStr for EvmOutputSelection {
379379 match s {
380380 "evm" => Ok ( Self :: All ) ,
381381 "asm" | "evm.assembly" => Ok ( Self :: Assembly ) ,
382- "evm.legacyAssembly" => Ok ( Self :: LegacyAssembly ) ,
382+ "legacyAssembly" | " evm.legacyAssembly" => Ok ( Self :: LegacyAssembly ) ,
383383 "methodidentifiers" | "evm.methodIdentifiers" | "evm.methodidentifiers" => {
384384 Ok ( Self :: MethodIdentifiers )
385385 }
Original file line number Diff line number Diff line change @@ -751,9 +751,8 @@ impl ExtraOutputFiles {
751751 ) -> Result < ( ) , SolcError > {
752752 if self . legacy_assembly {
753753 if let Some ( legacy_asm) = asm {
754- let file = file. with_extension ( "legacyAssembly" ) ;
755- fs:: write ( & file, legacy_asm. as_str ( ) . unwrap_or_default ( ) )
756- . map_err ( |err| SolcError :: io ( err, file) ) ?
754+ let file = file. with_extension ( "legacyAssembly.json" ) ;
755+ fs:: write ( & file, format ! ( "{legacy_asm}" ) ) . map_err ( |err| SolcError :: io ( err, file) ) ?
757756 }
758757 }
759758 Ok ( ( ) )
@@ -824,6 +823,7 @@ impl ExtraOutputFiles {
824823
825824 let evm = contract. evm . as_ref ( ) ;
826825 self . process_assembly ( evm. and_then ( |evm| evm. assembly . as_deref ( ) ) , file) ?;
826+ self . process_legacy_assembly ( evm. and_then ( |evm| evm. legacy_assembly . clone ( ) ) , file) ?;
827827
828828 let bytecode = evm. and_then ( |evm| evm. bytecode . as_ref ( ) ) ;
829829 self . process_generated_sources ( bytecode. map ( |b| & b. generated_sources ) , file) ?;
You can’t perform that action at this time.
0 commit comments