diff --git a/libs/primitives/src/lib.rs b/libs/primitives/src/lib.rs index d92a92bc3d..cf1ad99966 100644 --- a/libs/primitives/src/lib.rs +++ b/libs/primitives/src/lib.rs @@ -284,6 +284,7 @@ pub mod constants { /// The maximum number of pool fees per pool fee bucket pub const MAX_POOL_FEES_PER_BUCKET: u32 = 100; + /// Identification of the native token of the chain. Used in XCM locations. pub const NATIVE_KEY: &[u8] = &[0, 1]; } diff --git a/runtime/integration-tests/src/generic/cases/xcm_transfers.rs b/runtime/integration-tests/src/generic/cases/xcm_transfers.rs index 2a1b7e8504..04f471144b 100644 --- a/runtime/integration-tests/src/generic/cases/xcm_transfers.rs +++ b/runtime/integration-tests/src/generic/cases/xcm_transfers.rs @@ -28,7 +28,7 @@ use crate::{ const INITIAL: u32 = 100; const TRANSFER: u32 = 20; -fn create_transfeable_currency(decimals: u32, para_id: Option) -> CustomCurrency { +fn create_transferable_currency(decimals: u32, para_id: Option) -> CustomCurrency { CustomCurrency( CurrencyId::ForeignAsset(1), AssetMetadata { @@ -40,7 +40,7 @@ fn create_transfeable_currency(decimals: u32, para_id: Option) -> CustomCur #[test_runtimes(all)] fn para_to_sibling_with_foreign_to_foreign_tokens() { - let curr = create_transfeable_currency(6, Some(PARA_ID)); + let curr = create_transferable_currency(6, Some(PARA_ID)); let mut env = FudgeEnv::::from_storage( Default::default(), @@ -82,7 +82,7 @@ fn para_to_sibling_with_foreign_to_foreign_tokens() { #[test_runtimes(all)] fn para_to_sibling_with_native_to_foreign_tokens() { - let curr = create_transfeable_currency(18, Some(PARA_ID)); + let curr = create_transferable_currency(18, Some(PARA_ID)); let mut env = FudgeEnv::::from_storage( Default::default(), @@ -124,7 +124,7 @@ fn para_to_sibling_with_native_to_foreign_tokens() { #[test_runtimes(all)] fn para_to_sibling_with_foreign_to_native_tokens() { - let curr = create_transfeable_currency(18, Some(PARA_ID)); + let curr = create_transferable_currency(18, Some(PARA_ID)); let mut env = FudgeEnv::::from_storage( Default::default(), @@ -166,7 +166,7 @@ fn para_to_sibling_with_foreign_to_native_tokens() { #[test_runtimes(all)] fn para_from_to_relay_using_relay_native_tokens() { - let curr = create_transfeable_currency(10, None); + let curr = create_transferable_currency(10, None); let mut env = FudgeEnv::::from_storage( Genesis::default()