From 871c90fdbf8747aa47b6bad0149a4d44e3db9ade Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Tue, 28 Nov 2023 16:20:22 +0000 Subject: [PATCH] chore: add note about non-existing NFT in XCM asset-instance convert --- --- a/pallets/foreign-assets/src/lib.rs +++ b/pallets/foreign-assets/src/lib.rs @@ -276,6 +276,8 @@ /// /// If the asset instance is not in the valid format or the `` can't fit into the valid token ID, /// `None` will be returned. + /// + /// Note: this function can return `Some` containing the token ID of a non-existing NFT. fn local_asset_instance_to_token_id(asset_instance: &AssetInstance) -> Option { match asset_instance { AssetInstance::Index(token_id) => Some(TokenId((*token_id).try_into().ok()?)), -- gitstuff