difftreelog
fix(preimage-execution) accounting for weight bound
in: master
1 file changed
pallets/maintenance/src/lib.rsdiffbeforeafterboth107 /// `weight_bound` is the maximum weight that the caller is willing107 /// `weight_bound` is the maximum weight that the caller is willing108 /// to allow the extrinsic to be executed with.108 /// to allow the extrinsic to be executed with.109 #[pallet::call_index(2)]109 #[pallet::call_index(2)]110 #[pallet::weight(<T as Config>::WeightInfo::execute_preimage())]110 #[pallet::weight(<T as Config>::WeightInfo::execute_preimage() + *weight_bound)]111 pub fn execute_preimage(111 pub fn execute_preimage(112 origin: OriginFor<T>,112 origin: OriginFor<T>,113 hash: H256,113 hash: H256,