Skip to content

Commit

Permalink
William suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Jun 24, 2024
1 parent 7f79140 commit 3991dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions libs/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down
10 changes: 5 additions & 5 deletions runtime/integration-tests/src/generic/cases/xcm_transfers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use crate::{
const INITIAL: u32 = 100;
const TRANSFER: u32 = 20;

fn create_transfeable_currency(decimals: u32, para_id: Option<u32>) -> CustomCurrency {
fn create_transferable_currency(decimals: u32, para_id: Option<u32>) -> CustomCurrency {
CustomCurrency(
CurrencyId::ForeignAsset(1),
AssetMetadata {
Expand All @@ -40,7 +40,7 @@ fn create_transfeable_currency(decimals: u32, para_id: Option<u32>) -> CustomCur

#[test_runtimes(all)]
fn para_to_sibling_with_foreign_to_foreign_tokens<T: Runtime + FudgeSupport>() {
let curr = create_transfeable_currency(6, Some(PARA_ID));
let curr = create_transferable_currency(6, Some(PARA_ID));

let mut env = FudgeEnv::<T>::from_storage(
Default::default(),
Expand Down Expand Up @@ -82,7 +82,7 @@ fn para_to_sibling_with_foreign_to_foreign_tokens<T: Runtime + FudgeSupport>() {

#[test_runtimes(all)]
fn para_to_sibling_with_native_to_foreign_tokens<T: Runtime + FudgeSupport>() {
let curr = create_transfeable_currency(18, Some(PARA_ID));
let curr = create_transferable_currency(18, Some(PARA_ID));

let mut env = FudgeEnv::<T>::from_storage(
Default::default(),
Expand Down Expand Up @@ -124,7 +124,7 @@ fn para_to_sibling_with_native_to_foreign_tokens<T: Runtime + FudgeSupport>() {

#[test_runtimes(all)]
fn para_to_sibling_with_foreign_to_native_tokens<T: Runtime + FudgeSupport>() {
let curr = create_transfeable_currency(18, Some(PARA_ID));
let curr = create_transferable_currency(18, Some(PARA_ID));

let mut env = FudgeEnv::<T>::from_storage(
Default::default(),
Expand Down Expand Up @@ -166,7 +166,7 @@ fn para_to_sibling_with_foreign_to_native_tokens<T: Runtime + FudgeSupport>() {

#[test_runtimes(all)]
fn para_from_to_relay_using_relay_native_tokens<T: Runtime + FudgeSupport>() {
let curr = create_transfeable_currency(10, None);
let curr = create_transferable_currency(10, None);

let mut env = FudgeEnv::<T>::from_storage(
Genesis::default()
Expand Down

0 comments on commit 3991dea

Please sign in to comment.