diff --git a/parachains/runtimes/assets/statemine/tests/tests.rs b/parachains/runtimes/assets/statemine/tests/tests.rs index b3e86d41a4c..18caaaf3f7e 100644 --- a/parachains/runtimes/assets/statemine/tests/tests.rs +++ b/parachains/runtimes/assets/statemine/tests/tests.rs @@ -32,7 +32,7 @@ fn test_asset_xcm_trader() { let local_asset_id = 1; assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - local_asset_id, + local_asset_id.into(), AccountId::from(ALICE).into(), true, minimum_asset_balance @@ -41,7 +41,7 @@ fn test_asset_xcm_trader() { // We first mint enough asset for the account to exist for assets assert_ok!(Assets::mint( RuntimeHelper::::origin_of(AccountId::from(ALICE)), - local_asset_id, + local_asset_id.into(), AccountId::from(ALICE).into(), minimum_asset_balance )); @@ -338,7 +338,7 @@ fn test_asset_xcm_trader_not_possible_for_non_sufficient_assets() { let minimum_asset_balance = 1_000_000_u128; assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - 1, + 1.into(), AccountId::from(ALICE).into(), false, minimum_asset_balance @@ -347,7 +347,7 @@ fn test_asset_xcm_trader_not_possible_for_non_sufficient_assets() { // We first mint enough asset for the account to exist for assets assert_ok!(Assets::mint( RuntimeHelper::::origin_of(AccountId::from(ALICE)), - 1, + 1.into(), AccountId::from(ALICE).into(), minimum_asset_balance )); diff --git a/parachains/runtimes/assets/statemint/tests/tests.rs b/parachains/runtimes/assets/statemint/tests/tests.rs index 415a4139d09..50c0f904eb1 100644 --- a/parachains/runtimes/assets/statemint/tests/tests.rs +++ b/parachains/runtimes/assets/statemint/tests/tests.rs @@ -32,7 +32,7 @@ fn test_asset_xcm_trader() { let local_asset_id = 1; assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - local_asset_id, + local_asset_id.into(), AccountId::from(ALICE).into(), true, minimum_asset_balance @@ -41,7 +41,7 @@ fn test_asset_xcm_trader() { // We first mint enough asset for the account to exist for assets assert_ok!(Assets::mint( RuntimeHelper::::origin_of(AccountId::from(ALICE)), - local_asset_id, + local_asset_id.into(), AccountId::from(ALICE).into(), minimum_asset_balance )); @@ -121,7 +121,7 @@ fn test_asset_xcm_trader_with_refund() { // We set existential deposit to be identical to the one for Balances first assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - 1, + 1.into(), AccountId::from(ALICE).into(), true, ExistentialDeposit::get() @@ -130,7 +130,7 @@ fn test_asset_xcm_trader_with_refund() { // We first mint enough asset for the account to exist for assets assert_ok!(Assets::mint( RuntimeHelper::::origin_of(AccountId::from(ALICE)), - 1, + 1.into(), AccountId::from(ALICE).into(), ExistentialDeposit::get() )); @@ -274,7 +274,7 @@ fn test_that_buying_ed_refund_does_not_refund() { // We set existential deposit to be identical to the one for Balances first assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - 1, + 1.into(), AccountId::from(ALICE).into(), true, ExistentialDeposit::get() @@ -347,7 +347,7 @@ fn test_asset_xcm_trader_not_possible_for_non_sufficient_assets() { let minimum_asset_balance = 1_000_000_u128; assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - 1, + 1.into(), AccountId::from(ALICE).into(), false, minimum_asset_balance @@ -356,7 +356,7 @@ fn test_asset_xcm_trader_not_possible_for_non_sufficient_assets() { // We first mint enough asset for the account to exist for assets assert_ok!(Assets::mint( RuntimeHelper::::origin_of(AccountId::from(ALICE)), - 1, + 1.into(), AccountId::from(ALICE).into(), minimum_asset_balance )); diff --git a/parachains/runtimes/assets/westmint/tests/tests.rs b/parachains/runtimes/assets/westmint/tests/tests.rs index 89439a97b79..a7b846d49ec 100644 --- a/parachains/runtimes/assets/westmint/tests/tests.rs +++ b/parachains/runtimes/assets/westmint/tests/tests.rs @@ -32,7 +32,7 @@ fn test_asset_xcm_trader() { let local_asset_id = 1; assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - local_asset_id, + local_asset_id.into(), AccountId::from(ALICE).into(), true, minimum_asset_balance @@ -41,7 +41,7 @@ fn test_asset_xcm_trader() { // We first mint enough asset for the account to exist for assets assert_ok!(Assets::mint( RuntimeHelper::::origin_of(AccountId::from(ALICE)), - local_asset_id, + local_asset_id.into(), AccountId::from(ALICE).into(), minimum_asset_balance )); @@ -336,7 +336,7 @@ fn test_asset_xcm_trader_not_possible_for_non_sufficient_assets() { let minimum_asset_balance = 1_000_000_u128; assert_ok!(Assets::force_create( RuntimeHelper::::root_origin(), - 1, + 1.into(), AccountId::from(ALICE).into(), false, minimum_asset_balance @@ -345,7 +345,7 @@ fn test_asset_xcm_trader_not_possible_for_non_sufficient_assets() { // We first mint enough asset for the account to exist for assets assert_ok!(Assets::mint( RuntimeHelper::::origin_of(AccountId::from(ALICE)), - 1, + 1.into(), AccountId::from(ALICE).into(), minimum_asset_balance ));