Skip to content

Commit

Permalink
fix mock.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitrolito authored Feb 9, 2025
1 parent f728066 commit d7e6ff0
Showing 1 changed file with 6 additions and 6 deletions.
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 d7e6ff0

Please sign in to comment.