mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 08:27:55 +00:00
Companion for Weight v1.5 (#5943)
* fix to latest substrate pr
* update weights
* cargo build -p polkadot-runtime-parachains
* fix xcm-builder
* fix import
* fix a bunch
* fix a bunch of weight stuff
* kusama compile
* unused
* builds
* maybe fix
* cargo test -p polkadot-runtime-parachains
* xcm simulator example
* fix tests
* xcm sim fuzz
* fix runtime tests
* remove unused
* fix integration tests
* scalar div
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -51,7 +51,7 @@ pub mod slots_crowdloan_index_migration {
|
||||
}
|
||||
|
||||
pub fn migrate<T: Config + crowdloan::Config>() -> frame_support::weights::Weight {
|
||||
let mut weight = 0;
|
||||
let mut weight = Weight::new();
|
||||
|
||||
for (para_id, mut leases) in Leases::<T>::iter() {
|
||||
weight = weight.saturating_add(T::DbWeight::get().reads(2));
|
||||
|
||||
@@ -49,16 +49,16 @@ pub trait WeightInfo {
|
||||
pub struct TestWeightInfo;
|
||||
impl WeightInfo for TestWeightInfo {
|
||||
fn force_lease() -> Weight {
|
||||
0
|
||||
Weight::zero()
|
||||
}
|
||||
fn manage_lease_period_start(_c: u32, _t: u32) -> Weight {
|
||||
0
|
||||
Weight::zero()
|
||||
}
|
||||
fn clear_all_leases() -> Weight {
|
||||
0
|
||||
Weight::zero()
|
||||
}
|
||||
fn trigger_onboard() -> Weight {
|
||||
0
|
||||
Weight::zero()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ pub mod pallet {
|
||||
}
|
||||
|
||||
// We didn't return early above, so we didn't do anything.
|
||||
0
|
||||
Weight::zero()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user