From 0ab323d57bae6cb52c6a8b8c664ca9ccb0ace5c1 Mon Sep 17 00:00:00 2001 From: Blake Byrnes Date: Tue, 12 Nov 2024 16:56:52 -0500 Subject: [PATCH] Fully disable validate_unsigned when feature not active --- modules/ismp/pallets/pallet/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ismp/pallets/pallet/src/lib.rs b/modules/ismp/pallets/pallet/src/lib.rs index 7413245c..f5fdb8c0 100644 --- a/modules/ismp/pallets/pallet/src/lib.rs +++ b/modules/ismp/pallets/pallet/src/lib.rs @@ -654,7 +654,7 @@ pub mod pallet { /// This allows users execute ISMP datagrams for free. Use with caution. #[cfg(feature = "unsigned")] - #[pallet::validate_unsigned] + #[cfg_attr(feature="unsigned", pallet::validate_unsigned)] impl ValidateUnsigned for Pallet { type Call = Call;