Skip to content

Commit

Permalink
[fix] hyperledger-iroha#4090: Fix having to pass IROHA_SKIP_WASM_CHEC…
Browse files Browse the repository at this point in the history
…KS env variable with true
  • Loading branch information
Asem-Abdelhady committed Nov 28, 2023
1 parent 302f599 commit 7eb1eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn main() -> Result<()> {
// HACK: used by Nix, since at the moment
// the checks are a process that's hard to accomodate
// in Nix environment
if std::option_env!("IROHA_SKIP_WASM_CHECKS").is_none() {
if std::option_env!("IROHA_SKIP_WASM_CHECKS").is_some() {
check_default_executor()?;
}

Expand Down
2 changes: 1 addition & 1 deletion client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() -> Result<()> {
// HACK: used by Nix, since at the moment
// the checks are a process that's hard to accomodate
// in Nix environment
if std::option_env!("IROHA_SKIP_WASM_CHECKS").is_none() {
if std::option_env!("IROHA_SKIP_WASM_CHECKS").is_some() {
check_all_smartcontracts()?;
}

Expand Down

0 comments on commit 7eb1eab

Please sign in to comment.