git.delta.rocks / unique-network / refs/commits / 2ec2e3a5f380

difftreelog

fix(preimage-execution) accounting for weight bound

Fahrrader2023-02-22parent: #6ec8a32.patch.diff
in: master

1 file changed

modifiedpallets/maintenance/src/lib.rsdiffbeforeafterboth
107 /// `weight_bound` is the maximum weight that the caller is willing107 /// `weight_bound` is the maximum weight that the caller is willing
108 /// 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,