Skip to content

Commit

Permalink
Update ERC-7578: PropertiesRemoved Event
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
V1d0r authored May 28, 2024
1 parent d874452 commit 6e1d516
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ERCS/erc-7578.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ interface IERC7578 {
* @notice Emitted when the properties of the `tokenId` token are removed
*
* @param tokenId The ID of the token
* @param properties The properties of the token
*/
event PropertiesRemoved(uint256 indexed tokenId, Properties properties);
event PropertiesRemoved(uint256 indexed tokenId);
/**
* @notice Retrieves all the properties of the `tokenId` token
Expand All @@ -131,7 +130,7 @@ The `getProperties(uint256 tokenId)` function MUST return the unique `properties

When `properties` are set, the `PropertiesSet(uint256 indexed tokenId, Properties properties)` event is emitted.

When `properties` are removed, the `PropertiesRemoved(uint256 indexed tokenId, Properties properties)` event is emitted.
When `properties` are removed, the `PropertiesRemoved(uint256 indexed tokenId)` event is emitted.

## Rationale

Expand Down Expand Up @@ -210,7 +209,7 @@ contract ERC7578 is IERC7578, ERC721 {
*/
function _removeProperties(uint256 tokenId) internal {
delete _properties[tokenId];
emit PropertiesRemoved(tokenId, _properties[tokenId]);
emit PropertiesRemoved(tokenId);
}
/**
Expand Down

0 comments on commit 6e1d516

Please sign in to comment.