Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzamontiel committed Dec 12, 2024
1 parent 942bf9c commit 793236a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions pallets/moonbeam-foreign-assets/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ fn create_foreign_and_freeze_unfreeze() {
);
assert_eq!(
EvmForeignAssets::assets_creation_details(&1),
Some(AssetCreationDetails { creator: Alice.into(), deposit: 1})
Some(AssetCreationDetails {
creator: Alice.into(),
deposit: 1
})
);

expect_events(vec![crate::Event::ForeignAssetCreated {
Expand All @@ -78,7 +81,10 @@ fn create_foreign_and_freeze_unfreeze() {
);
assert_eq!(
EvmForeignAssets::assets_creation_details(&1),
Some(AssetCreationDetails { creator: Alice.into(), deposit: 1})
Some(AssetCreationDetails {
creator: Alice.into(),
deposit: 1
})
);

// Unfreeze should return AssetNotFrozen error
Expand Down Expand Up @@ -206,7 +212,7 @@ fn test_root_can_change_foreign_asset_for_asset_id() {
]),
asset_id: 1,
xcm_location: Location::parent(),
deposit: 1
deposit: 1,
},
crate::Event::ForeignAssetXcmLocationChanged {
asset_id: 1,
Expand Down
4 changes: 2 additions & 2 deletions runtime/moonbeam/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ use xcm_primitives::{
use parity_scale_codec::{Decode, Encode};
use scale_info::TypeInfo;

use crate::governance::referenda::{FastGeneralAdminOrRoot, GeneralAdminOrRoot};
use moonbeam_core_primitives::BlockNumber;
use sp_core::Get;
use sp_std::{
convert::{From, Into, TryFrom},
prelude::*,
};
use moonbeam_core_primitives::BlockNumber;
use crate::governance::referenda::{FastGeneralAdminOrRoot, GeneralAdminOrRoot};

parameter_types! {
// The network Id of the relay
Expand Down
4 changes: 2 additions & 2 deletions runtime/moonriver/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ use xcm_primitives::{
use parity_scale_codec::{Decode, Encode};
use scale_info::TypeInfo;

use crate::governance::referenda::{FastGeneralAdminOrRoot, GeneralAdminOrRoot};
use moonbeam_core_primitives::BlockNumber;
use sp_core::Get;
use sp_std::{
convert::{From, Into, TryFrom},
prelude::*,
};
use moonbeam_core_primitives::BlockNumber;
use crate::governance::referenda::{FastGeneralAdminOrRoot, GeneralAdminOrRoot};

parameter_types! {
// The network Id of the relay
Expand Down

0 comments on commit 793236a

Please sign in to comment.