diff --git a/modules/ismp/pallets/pallet/src/lib.rs b/modules/ismp/pallets/pallet/src/lib.rs index 7413245c8..f5fdb8c01 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;