Files
pezkuwi-runtime-templates/evm-template/runtime/tests/xcm_mock/parachain/xcm_config/weigher.rs
T
2024-11-26 13:30:00 -05:00

13 lines
361 B
Rust

use frame_support::parameter_types;
use xcm::latest::prelude::*;
use xcm_builder::FixedWeightBounds;
use crate::xcm_mock::parachain::RuntimeCall;
parameter_types! {
pub const UnitWeightCost: Weight = Weight::from_parts(1, 1);
pub const MaxInstructions: u32 = 100;
}
pub type Weigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>;