Skip to content

Commit 2581f03

Browse files
committed
update
1 parent 6117dfc commit 2581f03

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

auction/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub mod module {
137137
/// The dispatch origin for this call must be `Signed` by the
138138
/// transactor.
139139
#[pallet::call_index(0)]
140-
#[pallet::weight(T::WeightInfo::bid_collateral_auction())]
140+
#[pallet::weight(T::WeightInfo::bid())]
141141
pub fn bid(origin: OriginFor<T>, id: T::AuctionId, #[pallet::compact] value: T::Balance) -> DispatchResult {
142142
let from = ensure_signed(origin)?;
143143

auction/src/weights.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ use sp_std::marker::PhantomData;
3030

3131
/// Weight functions needed for orml_auction.
3232
pub trait WeightInfo {
33-
fn bid_collateral_auction() -> Weight;
33+
fn bid() -> Weight;
3434
fn on_finalize(c: u32, ) -> Weight;
3535
}
3636

3737
/// Default weights.
3838
impl WeightInfo for () {
39-
fn bid_collateral_auction() -> Weight {
39+
fn bid() -> Weight {
4040
Weight::from_parts(108_000_000, 0)
4141
.saturating_add(RocksDbWeight::get().reads(8 as u64))
4242
.saturating_add(RocksDbWeight::get().writes(9 as u64))

0 commit comments

Comments
 (0)