diff --git a/soroban-sdk-macros/src/derive_fn.rs b/soroban-sdk-macros/src/derive_fn.rs index 129922d7..0c24bfe7 100644 --- a/soroban-sdk-macros/src/derive_fn.rs +++ b/soroban-sdk-macros/src/derive_fn.rs @@ -126,7 +126,7 @@ pub fn derive_pub_fn( return Err(quote! { #(#compile_errors)* }); } - let testutils_only_code = if cfg!(not(feature = "testutils")) { + let testutils_only_code = if cfg!(feature = "testutils") { Some(quote! { #[deprecated(note = #deprecated_note)] pub fn invoke_raw_slice(