-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a test that proves this works now
- Loading branch information
Showing
4 changed files
with
122 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// test that checks that you have to recompile the project if the zksolc version changes (the | ||
// cache is invalidated) | ||
#[test] | ||
fn zksync_project_has_zksync_solc_when_solc_req_is_a_version_and_zksolc_version_changes() { | ||
let zk_config = zk_config(); | ||
|
||
let config = | ||
Config { zksolc: Some(SolcReq::Version(Version::new(0, 8, 26))), ..Default::default() }; | ||
let project = config_create_project(&config, false, true).unwrap(); | ||
let solc_compiler = project.compiler.solc; | ||
if let SolcCompiler::Specific(path) = solc_compiler { | ||
let version = get_solc_version_info(&path.solc).unwrap(); | ||
assert!(version.zksync_version.is_some()); | ||
} else { | ||
panic!("Expected SolcCompiler::Specific"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters