Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling error in mock.rs #3375

Merged
merged 3 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions domains/pallets/messenger/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ macro_rules! impl_runtime {
#[derive(
PartialEq, Eq, Clone, Encode, Decode, TypeInfo, MaxEncodedLen, Ord, PartialOrd, Copy, Debug,
)]
pub enum MockHoldIdentifer {
pub enum MockHoldIdentifier {
Messenger(HoldIdentifier)
}

impl VariantCount for MockHoldIdentifer {
impl VariantCount for MockHoldIdentifier {
const VARIANT_COUNT: u32 = mem::variant_count::<HoldIdentifier>() as u32;
}

impl crate::HoldIdentifier<$runtime> for MockHoldIdentifer {
impl crate::HoldIdentifier<$runtime> for MockHoldIdentifier {
fn messenger_channel() -> Self {
MockHoldIdentifer::Messenger(HoldIdentifier::MessengerChannel)
MockHoldIdentifier::Messenger(HoldIdentifier::MessengerChannel)
}
}

Expand All @@ -100,7 +100,7 @@ macro_rules! impl_runtime {
type DomainOwner = ();
type ChannelReserveFee = ChannelReserveFee;
type ChannelInitReservePortion = ChannelInitReservePortion;
type HoldIdentifier = MockHoldIdentifer;
type HoldIdentifier = MockHoldIdentifier;
type DomainRegistration = DomainRegistration;
type ChannelFeeModel = ChannelFeeModel;
type MaxOutgoingMessages = MaxOutgoingMessages;
Expand Down Expand Up @@ -138,7 +138,7 @@ macro_rules! impl_runtime {
type Balance = Balance;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type RuntimeHoldReason = MockHoldIdentifer;
type RuntimeHoldReason = MockHoldIdentifier;
}

parameter_types! {
Expand Down
12 changes: 6 additions & 6 deletions domains/pallets/transporter/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl pallet_balances::Config for MockRuntime {
type Balance = Balance;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type RuntimeHoldReason = MockHoldIdentifer;
type RuntimeHoldReason = MockHoldIdentifier;
}

parameter_types! {
Expand All @@ -60,11 +60,11 @@ parameter_types! {
#[derive(
PartialEq, Eq, Clone, Encode, Decode, TypeInfo, MaxEncodedLen, Ord, PartialOrd, Copy, Debug,
)]
pub enum MockHoldIdentifer {
pub enum MockHoldIdentifier {
Messenger(HoldIdentifier),
}

impl VariantCount for MockHoldIdentifer {
impl VariantCount for MockHoldIdentifier {
const VARIANT_COUNT: u32 = 1u32;
}

Expand All @@ -76,9 +76,9 @@ impl sp_messenger::DomainRegistration for DomainRegistration {
}
}

impl pallet_messenger::HoldIdentifier<MockRuntime> for MockHoldIdentifer {
impl pallet_messenger::HoldIdentifier<MockRuntime> for MockHoldIdentifier {
fn messenger_channel() -> Self {
MockHoldIdentifer::Messenger(HoldIdentifier::MessengerChannel)
MockHoldIdentifier::Messenger(HoldIdentifier::MessengerChannel)
}
}

Expand All @@ -95,7 +95,7 @@ impl pallet_messenger::Config for MockRuntime {
type DomainOwner = ();
type ChannelReserveFee = ChannelReserveFee;
type ChannelInitReservePortion = ChannelInitReservePortion;
type HoldIdentifier = MockHoldIdentifer;
type HoldIdentifier = MockHoldIdentifier;
type DomainRegistration = DomainRegistration;
type ChannelFeeModel = ChannelFeeModel;
type MaxOutgoingMessages = MaxOutgoingMessages;
Expand Down
Loading