Skip to content

Commit

Permalink
test: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Jan 29, 2025
1 parent 8c7464c commit 9ee915f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pallets/moonbeam-foreign-assets/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,6 @@ fn encode_token_name(str_: &str) -> BoundedVec<u8, ConstU32<256>> {
BoundedVec::try_from(str_.as_bytes().to_vec()).expect("too long")
}

#[test]
fn create_foreign_assets_cannot_be_called_using_normal_user() {
ExtBuilder::default().build().execute_with(|| {
assert_noop!(
EvmForeignAssets::create_foreign_asset(
RuntimeOrigin::signed(Bob.into()),
1,
Location::parent(),
18,
encode_ticker("MTT"),
encode_token_name("MyToken"),
),
DispatchError::BadOrigin,
);
});
}

#[test]
fn create_foreign_and_freeze_unfreeze_using_xcm() {
ExtBuilder::default().build().execute_with(|| {
Expand Down

0 comments on commit 9ee915f

Please sign in to comment.