Skip to content

Commit

Permalink
Fix cfg compilation (or -> any)
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Jul 31, 2023
1 parent 90b6081 commit b0486de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cosmwasm/enclaves/execute/src/registration/onchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub unsafe extern "C" fn ecall_authenticate_new_node(

#[cfg(all(
feature = "light-client-validation",
or(not(feature = "go-tests"), feature = "production")
any(not(feature = "go-tests"), feature = "production")
))]
{
if !check_cert_in_current_block(cert_slice) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub fn init(

#[cfg(all(
feature = "light-client-validation",
or(not(feature = "go-tests"), feature = "production")
any(not(feature = "go-tests"), feature = "production")
))]
{
verify_block_info(&base_env)?;
Expand Down Expand Up @@ -349,7 +349,7 @@ pub fn migrate(

#[cfg(all(
feature = "light-client-validation",
or(not(feature = "go-tests"), feature = "production")
any(not(feature = "go-tests"), feature = "production")
))]
{
verify_block_info(&base_env)?;
Expand Down Expand Up @@ -527,7 +527,7 @@ pub fn update_admin(

#[cfg(all(
feature = "light-client-validation",
or(not(feature = "go-tests"), feature = "production")
any(not(feature = "go-tests"), feature = "production")
))]
{
verify_block_info(&base_env)?;
Expand Down Expand Up @@ -626,7 +626,7 @@ pub fn handle(

#[cfg(all(
feature = "light-client-validation",
or(not(feature = "go-tests"), feature = "production")
any(not(feature = "go-tests"), feature = "production")
))]
{
verify_block_info(&base_env)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ fn verify_input_params(

#[cfg(all(
feature = "light-client-validation",
or(not(feature = "go-tests"), feature = "production")
any(not(feature = "go-tests"), feature = "production")
))]
{
info!("Verifying message in signed block...");
Expand Down

0 comments on commit b0486de

Please sign in to comment.