--- 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()?)),