Use SolidityLang for solc downloads (#117)

This commit is contained in:
Omar authored and GitHub committed 2025-08-06 10:35:05 +00:00
1 parent 9980926d40
commit edba49b301
4 files changed
+54 -32

No files matched your search

+21
View File
@@ -238,4 +238,25 @@ mod test {
Version::new(0, 7, 6)
)
}
#[tokio::test]
async fn compiler_version_can_be_obtained1() {
// Arrange
let args = Arguments::default();
println!("Getting compiler path");
let path = Solc::get_compiler_executable(&args, Version::new(0, 4, 21))
.await
.unwrap();
println!("Got compiler path");
let compiler = Solc::new(path);
// Act
let version = compiler.version();
// Assert
assert_eq!(
version.expect("Failed to get version"),
Version::new(0, 4, 21)
)
}
}