Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Changed T::BlockWeights::get().max_block -> Weight::MAX #7546

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions xcm/pallet-xcm-benchmarks/src/fungible/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use frame_benchmarking::{benchmarks_instance_pallet, BenchmarkError, BenchmarkRe
use frame_support::{
pallet_prelude::Get,
traits::fungible::{Inspect, Mutate},
weights::Weight,
};
use sp_runtime::traits::{Bounded, Zero};
use sp_std::{prelude::*, vec};
Expand Down Expand Up @@ -134,7 +135,7 @@ benchmarks_instance_pallet! {
reserve_asset_deposited {
let (trusted_reserve, transferable_reserve_asset) = T::TrustedReserve::get()
.ok_or(BenchmarkError::Override(
BenchmarkResult::from_weight(T::BlockWeights::get().max_block)
BenchmarkResult::from_weight(Weight::MAX)
))?;

let assets: MultiAssets = vec![ transferable_reserve_asset ].into();
Expand Down Expand Up @@ -187,7 +188,7 @@ benchmarks_instance_pallet! {
}: {
executor.bench_process(xcm).map_err(|_| {
BenchmarkError::Override(
BenchmarkResult::from_weight(T::BlockWeights::get().max_block)
BenchmarkResult::from_weight(Weight::MAX)
)
})?;
} verify {
Expand Down