From 32cffa4572becc6b94881a4566d68efdcd4d6dfb Mon Sep 17 00:00:00 2001 From: Lisska Date: Mon, 12 Aug 2024 17:34:28 +0200 Subject: [PATCH] Update 2_2.md --- docs/standards/TIP/TIP-4/2_2.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/standards/TIP/TIP-4/2_2.md b/docs/standards/TIP/TIP-4/2_2.md index 4c501e44..e381f505 100644 --- a/docs/standards/TIP/TIP-4/2_2.md +++ b/docs/standards/TIP/TIP-4/2_2.md @@ -41,10 +41,10 @@ interface ITIP4_2_2Collection { /// The TIP-6.1 identifier for this interface is 0x244a5200 /// @notice The event emits when set or change collection metadata - event collectionMetadataUpdated(); + event CollectionMetadataUpdated(); /// @notice The event emits when set or change NFTs metadata - event nftMetadataUpdated(); + event NftMetadataUpdated(); /// @notice build url to get metadata for NFT /// @return nftUrl - url to get metadata for NFT @@ -74,8 +74,8 @@ function getCollectionUrl() external view responsible returns (string collection The function is analogous to the getJson function in the Type4.2 standard but returns not json but a link to the json metadata of the collection. ```solidity -event collectionMetadataUpdated(); -event nftMetadataUpdated(); +event CollectionMetadataUpdated(); +event NftMetadataUpdated(); ``` You must emit them when you change the metadata of collection or NFT. @@ -93,7 +93,7 @@ interface ITIP4_2_2NFT { /// The TIP-6.1 identifier for this interface is 0x7239d7b1. /// @notice event emits when update NFT part. - event metadataUpdated(); + event MetadataUpdated(); /// @notice NFT part to get metadata /// @return part - TvmCell allows to build URL with metadata for this NFT @@ -108,7 +108,7 @@ function getUrlParts() external view responsible returns (TvmCell part); ``` The function returns the part identifying the NFT in the form of a TvmCell, which gives greater variability. In the simplest version, this could be id. -You must emit event `metadataUpdated()` when NFT part update. +You must emit event `MetadataUpdated()` when NFT part update. ### Metadata format JSON metadata type: "Basic NFT"