From 2ec2e3a5f380826d4dae1f9d59ab8c8f885fef0d Mon Sep 17 00:00:00 2001 From: Fahrrader Date: Wed, 22 Feb 2023 20:29:44 +0000 Subject: [PATCH] fix(preimage-execution): accounting for weight bound --- --- 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, -- gitstuff