Skip to content

Commit 98bf0be

Browse files
ritzdorfHubert Ritzdorf
and
Hubert Ritzdorf
authored
Do Bytecode Test Earlier (#7)
Co-authored-by: Hubert Ritzdorf <hubert.ritzdorf@chainsecurity.com>
1 parent da8ce5d commit 98bf0be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dvf.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -769,9 +769,6 @@ fn process(matches: ArgMatches) -> Result<(), ValidationError> {
769769
let compare_status =
770770
CompareBytecode::compare(&mut project_info, factory_mode, &rpc_code);
771771

772-
// immutable values are set in CompareBytecode::compare so this has to be after the call
773-
dumped.copy_immutables(&project_info, &pretty_printer);
774-
775772
if !compare_status.matched {
776773
if matches.get_count("verbose") > 0 {
777774
let mut error_info_table = Table::new();
@@ -800,6 +797,9 @@ fn process(matches: ArgMatches) -> Result<(), ValidationError> {
800797
dumped.address
801798
)));
802799
}
800+
// immutable values are set in CompareBytecode::compare so this has to be after the call
801+
dumped.copy_immutables(&project_info, &pretty_printer);
802+
803803
debug!("Copying parsed constructor arguments to dvf file");
804804
dumped.copy_constructor_args(&project_info, &pretty_printer);
805805

0 commit comments

Comments
 (0)