Skip to content

Commit

Permalink
remove unused mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Aug 13, 2024
1 parent f14673f commit 5618127
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 108 deletions.
2 changes: 0 additions & 2 deletions libs/mocks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub mod investment;
pub mod liquidity_pools;
pub mod liquidity_pools_gateway;
pub mod liquidity_pools_gateway_queue;
pub mod liquidity_pools_gateway_routers;
pub mod pay_fee;
pub mod permissions;
pub mod pools;
Expand All @@ -32,7 +31,6 @@ pub use investment::pallet as pallet_mock_investment;
pub use liquidity_pools::pallet as pallet_mock_liquidity_pools;
pub use liquidity_pools_gateway::pallet as pallet_mock_liquidity_pools_gateway;
pub use liquidity_pools_gateway_queue::pallet as pallet_mock_liquidity_pools_gateway_queue;
pub use liquidity_pools_gateway_routers::{pallet as pallet_mock_routers, RouterMock};
pub use pay_fee::pallet as pallet_mock_pay_fee;
pub use permissions::pallet as pallet_mock_permissions;
pub use pools::pallet as pallet_mock_pools;
Expand Down
102 changes: 0 additions & 102 deletions libs/mocks/src/liquidity_pools_gateway_routers.rs

This file was deleted.

8 changes: 4 additions & 4 deletions pallets/axelar-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub use pallet::*;
use precompile_utils::prelude::*;
use scale_info::prelude::{format, string::String};
use sp_core::{H160, H256, U256};
use sp_std::{collections::btree_map::BTreeMap, vec, vec::Vec};
use sp_std::{boxed::Box, collections::btree_map::BTreeMap, vec, vec::Vec};

#[cfg(test)]
mod mock;
Expand Down Expand Up @@ -149,7 +149,7 @@ pub mod pallet {
pub enum Event<T: Config> {
ConfigSet {
name: ChainName,
config: AxelarConfig,
config: Box<AxelarConfig>,
},
}

Expand Down Expand Up @@ -178,7 +178,7 @@ pub mod pallet {
pub fn set_config(
origin: OriginFor<T>,
chain_name: ChainName,
config: AxelarConfig,
config: Box<AxelarConfig>,
) -> DispatchResult {
T::AdminOrigin::ensure_origin(origin)?;

Expand All @@ -203,7 +203,7 @@ pub mod pallet {

Self::deposit_event(Event::<T>::ConfigSet {
name: chain_name,
config: config,
config,
});

Ok(())
Expand Down

0 comments on commit 5618127

Please sign in to comment.