Skip to content

Commit

Permalink
remove default and fix IT
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Aug 18, 2024
1 parent 1101a64 commit 90a6d13
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
6 changes: 0 additions & 6 deletions libs/types/src/domain_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ impl TypeId for DomainAddress {
const TYPE_ID: [u8; 4] = crate::ids::DOMAIN_ADDRESS_ID;
}

impl Default for DomainAddress {
fn default() -> Self {
DomainAddress::Centrifuge(AccountId32::new([0; 32]))
}
}

impl From<DomainAddress> for Domain {
fn from(x: DomainAddress) -> Self {
match x {
Expand Down
6 changes: 0 additions & 6 deletions pallets/axelar-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ pub enum AxelarId {
Evm(EVMChainId),
}

impl Default for AxelarId {
fn default() -> Self {
Self::Evm(1)
}
}

/// Configuration for outbound messages though axelar
#[derive(Debug, Encode, Decode, Clone, PartialEq, Eq, TypeInfo, MaxEncodedLen)]
pub struct AxelarConfig {
Expand Down
2 changes: 1 addition & 1 deletion pallets/liquidity-pools-gateway/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl LPMessage for Message {
}
}

#[derive(Default, Debug, Encode, Decode, Clone, PartialEq, Eq, TypeInfo, MaxEncodedLen, Hash)]
#[derive(Debug, Encode, Decode, Clone, PartialEq, Eq, TypeInfo, MaxEncodedLen, Hash)]
pub struct RouterId(pub u32);

pub struct TestRouterProvider;
Expand Down
6 changes: 3 additions & 3 deletions runtime/integration-tests/src/cases/assets.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cfg_types::tokens::{default_metadata, CurrencyId};
use frame_support::{assert_noop, assert_ok, dispatch::RawOrigin};
use frame_support::{assert_err, assert_ok, dispatch::RawOrigin};
use sp_runtime::{DispatchError, DispatchError::BadOrigin};

use crate::{config::Runtime, env::Env, envs::runtime_env::RuntimeEnv, utils::orml_asset_registry};
Expand All @@ -21,7 +21,7 @@ fn authority_configured<T: Runtime>() {
Some(CurrencyId::ForeignAsset(42))
));

assert_noop!(
assert_err!(
orml_asset_registry::Pallet::<T>::register_asset(
RawOrigin::Root.into(),
default_metadata(),
Expand All @@ -37,7 +37,7 @@ fn processor_configured<T: Runtime>() {
let mut env = RuntimeEnv::<T>::default();

env.parachain_state_mut(|| {
assert_noop!(
assert_err!(
orml_asset_registry::Pallet::<T>::register_asset(
RawOrigin::Root.into(),
default_metadata(),
Expand Down

0 comments on commit 90a6d13

Please sign in to comment.