Unverified Commit 7a532985 authored by Xiliang Chen's avatar Xiliang Chen Committed by GitHub
Browse files

implement dispatch_as (#4075)



* support dispatch_as

* add weight

* Update Cargo.lock
Co-authored-by: Shawn Tabrizi's avatarShawn Tabrizi <shawntabrizi@gmail.com>
parent 6841b721
Pipeline #164679 failed with stages
in 33 minutes and 55 seconds
This diff is collapsed.
......@@ -934,6 +934,7 @@ impl pallet_identity::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}
......
......@@ -55,4 +55,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0
.saturating_add((3_292_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
}
......@@ -952,6 +952,7 @@ impl pallet_vesting::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}
......
......@@ -55,4 +55,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0
.saturating_add((1_014_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
}
......@@ -1041,6 +1041,7 @@ impl validator_manager::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = ();
}
......
......@@ -616,6 +616,7 @@ impl pallet_identity::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}
......
......@@ -55,4 +55,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0
.saturating_add((3_091_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment