Skip to content

Commit daa4afb

Browse files
committed
style: rm underscore from setTokenURI params
1 parent 6085198 commit daa4afb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

contracts/SPGNFT.sol

+6-6
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ contract SPGNFT is ISPGNFT, ERC721URIStorageUpgradeable, AccessControlUpgradeabl
222222
/// @notice Sets the token URI for a specific token.
223223
/// @dev Only callable by the owner of the token. This updates the metadata URI
224224
/// for the specified token and emits a MetadataUpdate event.
225-
/// @param tokenId_ The ID of the token to update.
226-
/// @param tokenURI_ The new metadata URI to associate with the token.
227-
function setTokenURI(uint256 tokenId_, string memory tokenURI_) external {
225+
/// @param tokenId The ID of the token to update.
226+
/// @param tokenURI The new metadata URI to associate with the token.
227+
function setTokenURI(uint256 tokenId, string memory tokenURI) external {
228228
// revert if caller is not the owner of the `tokenId` token
229-
address owner = ownerOf(tokenId_);
230-
if (owner != msg.sender) revert Errors.SPGNFT__CallerNotOwner(tokenId_, msg.sender, owner);
231-
_setTokenURI(tokenId_, tokenURI_);
229+
address owner = ownerOf(tokenId);
230+
if (owner != msg.sender) revert Errors.SPGNFT__CallerNotOwner(tokenId, msg.sender, owner);
231+
_setTokenURI(tokenId, tokenURI);
232232
}
233233

234234
/// @notice Sets the contract URI for the collection.

contracts/interfaces/ISPGNFT.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ interface ISPGNFT is IAccessControl, IERC721Metadata, IERC7572 {
112112
/// @notice Sets the token URI for a specific token.
113113
/// @dev Only callable by the owner of the token. This updates the metadata URI
114114
/// for the specified token and emits a MetadataUpdate event.
115-
/// @param tokenId_ The ID of the token to update.
116-
/// @param tokenURI_ The new metadata URI to associate with the token.
117-
function setTokenURI(uint256 tokenId_, string memory tokenURI_) external;
115+
/// @param tokenId The ID of the token to update.
116+
/// @param tokenURI The new metadata URI to associate with the token.
117+
function setTokenURI(uint256 tokenId, string memory tokenURI) external;
118118

119119
/// @notice Mints an NFT from the collection. Only callable by the minter role.
120120
/// @param to The address of the recipient of the minted NFT.

0 commit comments

Comments
 (0)