Skip to content

Commit

Permalink
Merge pull request #3375 from Dimitrolito/fix/fix
Browse files Browse the repository at this point in the history
Fix spelling error in `mock.rs`
  • Loading branch information
vedhavyas authored Feb 11, 2025
2 parents c8b57a9 + a4447ae commit c5ac4a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
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

0 comments on commit c5ac4a0

Please sign in to comment.