Skip to content

Commit

Permalink
fix(kreivo-runtime): missing set_gas_tank on WeightInfo for `pall…
Browse files Browse the repository at this point in the history
…et_communities_manager`
  • Loading branch information
pandres95 committed Dec 16, 2024
1 parent 00a0ba0 commit ec2e125
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime/kreivo/src/weights/pallet_communities_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
use frame_support::weights::constants::RocksDbWeight;

/// Weight functions for `pallet_communities_manager`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand Down Expand Up @@ -101,4 +102,11 @@ impl<T: frame_system::Config> pallet_communities_manager::WeightInfo for WeightI
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(q.into())))
.saturating_add(Weight::from_parts(0, 3334).saturating_mul(q.into()))
}

fn set_gas_tank() -> Weight {
Weight::from_parts(10_000_000, 0)
.saturating_add(Weight::from_parts(0, 102400))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
}

0 comments on commit ec2e125

Please sign in to comment.