Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov committed Jun 28, 2024
1 parent e9a3d0e commit b9ef801
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn build_solidity(
let _ = crate::process::EXECUTABLE.set(PathBuf::from(crate::r#const::DEFAULT_EXECUTABLE_NAME));

let solc_compiler = SolcCompiler::new(
format!("{}-{}", SolcCompiler::DEFAULT_EXECUTABLE_NAME, solc_version).as_str(),
format!("{}-{}.exe", SolcCompiler::DEFAULT_EXECUTABLE_NAME, solc_version).as_str(),
)?;

let solc_input = SolcStandardJsonInput::try_from_solidity_sources(
Expand Down Expand Up @@ -132,7 +132,7 @@ pub fn build_solidity_and_detect_missing_libraries(
let _ = crate::process::EXECUTABLE.set(PathBuf::from(crate::r#const::DEFAULT_EXECUTABLE_NAME));

let solc_compiler = SolcCompiler::new(
format!("{}-{}", SolcCompiler::DEFAULT_EXECUTABLE_NAME, solc_version).as_str(),
format!("{}-{}.exe", SolcCompiler::DEFAULT_EXECUTABLE_NAME, solc_version).as_str(),
)?;

let solc_input = SolcStandardJsonInput::try_from_solidity_sources(
Expand Down Expand Up @@ -375,7 +375,7 @@ pub fn check_solidity_message(
check_dependencies(Some(solc_version));

let solc_compiler = SolcCompiler::new(
format!("{}-{}", SolcCompiler::DEFAULT_EXECUTABLE_NAME, solc_version).as_str(),
format!("{}-{}.exe", SolcCompiler::DEFAULT_EXECUTABLE_NAME, solc_version).as_str(),
)?;
if skip_for_zksync_edition && solc_compiler.version.l2_revision.is_some() {
return Ok(true);
Expand Down Expand Up @@ -425,7 +425,7 @@ fn check_dependencies(solc_version: Option<&semver::Version>) {
let mut executables = vec![crate::r#const::DEFAULT_EXECUTABLE_NAME.to_owned()];
if let Some(solc_version) = solc_version {
executables.push(format!(
"{}-{}",
"{}-{}.exe",
SolcCompiler::DEFAULT_EXECUTABLE_NAME,
solc_version
));
Expand Down
8 changes: 4 additions & 4 deletions src/tests/standard_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn standard_json_yul_default_validated() {
.expect("Standard JSON reading error");
let solc_compiler = SolcCompiler::new(
format!(
"{}-{}",
"{}-{}.exe",
SolcCompiler::DEFAULT_EXECUTABLE_NAME,
SolcCompiler::LAST_SUPPORTED_VERSION
)
Expand Down Expand Up @@ -102,7 +102,7 @@ fn standard_json_yul_default_urls_validated() {
.expect("Standard JSON reading error");
let solc_compiler = SolcCompiler::new(
format!(
"{}-{}",
"{}-{}.exe",
SolcCompiler::DEFAULT_EXECUTABLE_NAME,
SolcCompiler::LAST_SUPPORTED_VERSION
)
Expand Down Expand Up @@ -162,7 +162,7 @@ fn standard_json_yul_eravm_validated() {
.expect("Standard JSON reading error");
let solc_compiler = SolcCompiler::new(
format!(
"{}-{}",
"{}-{}.exe",
SolcCompiler::DEFAULT_EXECUTABLE_NAME,
SolcCompiler::LAST_SUPPORTED_VERSION
)
Expand Down Expand Up @@ -222,7 +222,7 @@ fn standard_json_yul_eravm_urls_validated() {
.expect("Standard JSON reading error");
let solc_compiler = SolcCompiler::new(
format!(
"{}-{}",
"{}-{}.exe",
SolcCompiler::DEFAULT_EXECUTABLE_NAME,
SolcCompiler::LAST_SUPPORTED_VERSION
)
Expand Down

0 comments on commit b9ef801

Please sign in to comment.