--- a/pallets/maintenance/src/lib.rs +++ b/pallets/maintenance/src/lib.rs @@ -107,7 +107,7 @@ /// `weight_bound` is the maximum weight that the caller is willing /// to allow the extrinsic to be executed with. #[pallet::call_index(2)] - #[pallet::weight(::WeightInfo::execute_preimage())] + #[pallet::weight(::WeightInfo::execute_preimage() + *weight_bound)] pub fn execute_preimage( origin: OriginFor, hash: H256,