Skip to content

Commit

Permalink
fix: foreign-assets related docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshiposha committed Oct 25, 2023
1 parent aa504bc commit 4e0f363
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions pallets/foreign-assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl<T: Config> Pallet<T> {
}
}

/// Converts a multiasset to a Unique Network's collection (either local or the foreign one).
/// Converts a multiasset to a Unique Network's collection (either local or a foreign one).
///
/// The function will try to convert the multiasset's reserve location
/// to the Unique Network's local collection.
Expand Down Expand Up @@ -385,8 +385,6 @@ impl<T: Config> Pallet<T> {
/// Withdraws an asset instance from the `from` account.
///
/// Transfers the asset instance to the pallet's account.
///
/// Won't withdraw the instance if it has children.
fn withdraw_asset_instance(
xcm_ext: &dyn XcmExtensions<T>,
collection_id: CollectionId,
Expand Down
2 changes: 1 addition & 1 deletion pallets/unique/src/eth/stubs/CollectionHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ struct CreateCollectionData {
type CollectionFlags is uint8;

library CollectionFlagsLib {
/// Tokens in foreign collections can be transferred, but not burnt
/// A collection of foreign assets
CollectionFlags constant foreignField = CollectionFlags.wrap(128);
/// Supports ERC721Metadata
CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
Expand Down
2 changes: 1 addition & 1 deletion primitives/data-structs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ pub type CollectionTokenPrefix = BoundedVec<u8, ConstU32<MAX_TOKEN_PREFIX_LENGTH
#[derive(AbiCoderFlags, Bitfields, Clone, Copy, PartialEq, Eq, Debug, Default)]
#[bondrewd(enforce_bytes = 1)]
pub struct CollectionFlags {
/// Reserved flag
/// A collection of foreign assets
#[bondrewd(bits = "0..1")]
pub foreign: bool,
/// Supports ERC721Metadata
Expand Down
2 changes: 1 addition & 1 deletion tests/src/eth/api/CollectionHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ struct CreateCollectionData {
type CollectionFlags is uint8;

library CollectionFlagsLib {
/// Tokens in foreign collections can be transferred, but not burnt
/// A collection of foreign assets
CollectionFlags constant foreignField = CollectionFlags.wrap(128);
/// Supports ERC721Metadata
CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/util/playgrounds/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export enum CollectionFlag {
External = 1,
/// Supports ERC721Metadata
Erc721metadata = 64,
/// Tokens in foreign collections can be transferred, but not burnt
/// A collection of foreign assets
Foreign = 128,
}

Expand Down

0 comments on commit 4e0f363

Please sign in to comment.