Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianSternVukotic committed Feb 4, 2025
1 parent ae57143 commit 431315d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
16 changes: 8 additions & 8 deletions substrate/frame/assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@ pub mod pallet {
>;

#[pallet::storage]
/// Related company of asset
pub(super) type RelatedCompany<T: Config<I>, I: 'static = ()> = StorageMap<
_,
Blake2_128Concat,
T::AssetId,
AssetRelatedCompany,
ValueQuery,
>;
/// Related company of asset
pub(super) type RelatedCompany<T: Config<I>, I: 'static = ()> = StorageMap<
_,
Blake2_128Concat,
T::AssetId,
AssetRelatedCompany,
ValueQuery,
>;

#[pallet::genesis_config]
#[derive(frame_support::DefaultNoBound)]
Expand Down
6 changes: 1 addition & 5 deletions substrate/frame/assets/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,4 @@ pub struct AssetParameters {
pub(super) eresidency_required: bool,
}

#[derive(Copy, Clone, Encode, Decode, Eq, PartialEq, Default, RuntimeDebug, MaxEncodedLen, TypeInfo)]
pub struct AssetRelatedCompany {
/// Company related to the asset
pub(super) related_company_id: u32,
}
pub type AssetRelatedCompany = u32;

0 comments on commit 431315d

Please sign in to comment.