Skip to content

Commit dc20f4b

Browse files
committed
fix: weights for reset_team
1 parent 98f53f4 commit dc20f4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pallets/pallet-bonded-coins/src/default_weights.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub trait WeightInfo {
4949
fn create_pool_polynomial(c: u32, ) -> Weight;
5050
fn create_pool_square_root(c: u32, ) -> Weight;
5151
fn create_pool_lmsr(c: u32, ) -> Weight;
52-
fn reset_team() -> Weight;
52+
fn reset_team(c: u32, ) -> Weight;
5353
fn reset_manager() -> Weight;
5454
fn set_lock() -> Weight;
5555
fn unlock() -> Weight;
@@ -161,7 +161,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
161161
/// Proof: `BondedCoins::Pools` (`max_values`: None, `max_size`: Some(365), added: 2840, mode: `MaxEncodedLen`)
162162
/// Storage: `BondedCurrencies::Asset` (r:1 w:1)
163163
/// Proof: `BondedCurrencies::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
164-
fn reset_team() -> Weight {
164+
fn reset_team(_c: u32, ) -> Weight {
165165
// Proof Size summary in bytes:
166166
// Measured: `619`
167167
// Estimated: `3830`
@@ -567,7 +567,7 @@ impl WeightInfo for () {
567567
/// Proof: `BondedCoins::Pools` (`max_values`: None, `max_size`: Some(365), added: 2840, mode: `MaxEncodedLen`)
568568
/// Storage: `BondedCurrencies::Asset` (r:1 w:1)
569569
/// Proof: `BondedCurrencies::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
570-
fn reset_team() -> Weight {
570+
fn reset_team(_c:u32,) -> Weight {
571571
// Proof Size summary in bytes:
572572
// Measured: `619`
573573
// Estimated: `3830`

pallets/pallet-bonded-coins/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ pub mod pallet {
514514
/// the pool is larger than `currency_count`.
515515
/// - Other errors depending on the types in the config.
516516
#[pallet::call_index(1)]
517-
#[pallet::weight(T::WeightInfo::reset_team())]
517+
#[pallet::weight(T::WeightInfo::reset_team(currency_count.to_owned()))]
518518
pub fn reset_team(
519519
origin: OriginFor<T>,
520520
pool_id: T::PoolId,

0 commit comments

Comments
 (0)