Contract is now whole (and compact) again

This commit is contained in:
Johann 2022-03-08 18:06:33 -07:00
parent b052428df9
commit c07b048161
2 changed files with 5 additions and 5 deletions

View File

@ -577,10 +577,11 @@ pub trait ArtifactOutput {
let new_yul_abi = temp_yul_artifact.clone().into_inner().0;
let abi = &artifact_file.clone().artifact.replace_abi(new_yul_abi);
let mut new_Contract = artifact_file.clone().artifact.into_compact_contract();
println!("{:?}", artifact_file);
println!("{:?}", abi);
new_Contract.abi = new_yul_abi;
println!("{:?}", new_Contract);
//artifacts.remove_entry(&artifact_tuple.2);
}

View File

@ -115,9 +115,8 @@ fn can_compile_yul_sample() {
std::fs::remove_dir_all(&project.paths().artifacts).unwrap();
let compiled = project.compile().unwrap();
// Make sure ABI does exist
assert!( compiled.find("SimpleStore").is_some());
assert!(compiled.find("Dapp").is_some());
assert!(compiled.find("SimpleStore").is_some());
assert!(!compiled.is_unchanged());