Companion for dispatch_as (#715)

* dispatch as companion

* oops, forgot to save file

* Update Cargo.lock
This commit is contained in:
Shawn Tabrizi
2021-11-04 17:44:18 +01:00
committed by GitHub
parent caa13478a7
commit d21c7fd2b3
7 changed files with 394 additions and 264 deletions
Generated
+382 -264
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -302,6 +302,7 @@ impl pallet_multisig::Config for Runtime {
impl pallet_utility::Config for Runtime { impl pallet_utility::Config for Runtime {
type Event = Event; type Event = Event;
type Call = Call; type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>; type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
} }
@@ -39,4 +39,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0 // Standard Error: 0
.saturating_add((4_578_000 as Weight).saturating_mul(c as Weight)) .saturating_add((4_578_000 as Weight).saturating_mul(c as Weight))
} }
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
} }
+1
View File
@@ -281,6 +281,7 @@ impl pallet_multisig::Config for Runtime {
impl pallet_utility::Config for Runtime { impl pallet_utility::Config for Runtime {
type Event = Event; type Event = Event;
type Call = Call; type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>; type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
} }
@@ -39,4 +39,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0 // Standard Error: 0
.saturating_add((4_571_000 as Weight).saturating_mul(c as Weight)) .saturating_add((4_571_000 as Weight).saturating_mul(c as Weight))
} }
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
} }
+1
View File
@@ -269,6 +269,7 @@ impl pallet_multisig::Config for Runtime {
impl pallet_utility::Config for Runtime { impl pallet_utility::Config for Runtime {
type Event = Event; type Event = Event;
type Call = Call; type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>; type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
} }
@@ -39,4 +39,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0 // Standard Error: 0
.saturating_add((4_571_000 as Weight).saturating_mul(c as Weight)) .saturating_add((4_571_000 as Weight).saturating_mul(c as Weight))
} }
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
} }