Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
into
Browse files Browse the repository at this point in the history
  • Loading branch information
joepetrowski committed Nov 28, 2022
1 parent b5f9ebb commit 67c6ad1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions parachains/runtimes/assets/statemine/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn test_asset_xcm_trader() {
let local_asset_id = 1;
assert_ok!(Assets::force_create(
RuntimeHelper::<Runtime>::root_origin(),
local_asset_id,
local_asset_id.into(),
AccountId::from(ALICE).into(),
true,
minimum_asset_balance
Expand All @@ -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::<Runtime>::origin_of(AccountId::from(ALICE)),
local_asset_id,
local_asset_id.into(),
AccountId::from(ALICE).into(),
minimum_asset_balance
));
Expand Down Expand Up @@ -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::<Runtime>::root_origin(),
1,
1.into(),
AccountId::from(ALICE).into(),
false,
minimum_asset_balance
Expand All @@ -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::<Runtime>::origin_of(AccountId::from(ALICE)),
1,
1.into(),
AccountId::from(ALICE).into(),
minimum_asset_balance
));
Expand Down
14 changes: 7 additions & 7 deletions parachains/runtimes/assets/statemint/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn test_asset_xcm_trader() {
let local_asset_id = 1;
assert_ok!(Assets::force_create(
RuntimeHelper::<Runtime>::root_origin(),
local_asset_id,
local_asset_id.into(),
AccountId::from(ALICE).into(),
true,
minimum_asset_balance
Expand All @@ -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::<Runtime>::origin_of(AccountId::from(ALICE)),
local_asset_id,
local_asset_id.into(),
AccountId::from(ALICE).into(),
minimum_asset_balance
));
Expand Down Expand Up @@ -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::<Runtime>::root_origin(),
1,
1.into(),
AccountId::from(ALICE).into(),
true,
ExistentialDeposit::get()
Expand All @@ -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::<Runtime>::origin_of(AccountId::from(ALICE)),
1,
1.into(),
AccountId::from(ALICE).into(),
ExistentialDeposit::get()
));
Expand Down Expand Up @@ -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::<Runtime>::root_origin(),
1,
1.into(),
AccountId::from(ALICE).into(),
true,
ExistentialDeposit::get()
Expand Down Expand Up @@ -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::<Runtime>::root_origin(),
1,
1.into(),
AccountId::from(ALICE).into(),
false,
minimum_asset_balance
Expand All @@ -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::<Runtime>::origin_of(AccountId::from(ALICE)),
1,
1.into(),
AccountId::from(ALICE).into(),
minimum_asset_balance
));
Expand Down
8 changes: 4 additions & 4 deletions parachains/runtimes/assets/westmint/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn test_asset_xcm_trader() {
let local_asset_id = 1;
assert_ok!(Assets::force_create(
RuntimeHelper::<Runtime>::root_origin(),
local_asset_id,
local_asset_id.into(),
AccountId::from(ALICE).into(),
true,
minimum_asset_balance
Expand All @@ -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::<Runtime>::origin_of(AccountId::from(ALICE)),
local_asset_id,
local_asset_id.into(),
AccountId::from(ALICE).into(),
minimum_asset_balance
));
Expand Down Expand Up @@ -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::<Runtime>::root_origin(),
1,
1.into(),
AccountId::from(ALICE).into(),
false,
minimum_asset_balance
Expand All @@ -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::<Runtime>::origin_of(AccountId::from(ALICE)),
1,
1.into(),
AccountId::from(ALICE).into(),
minimum_asset_balance
));
Expand Down

0 comments on commit 67c6ad1

Please sign in to comment.