I would like to document my smart contracts functions using NatSpec Format.
Is there a VSCode extension I can use to do this, that basically generates that boilerplate code for me to fill in?
I would like to document my smart contracts functions using NatSpec Format.
Is there a VSCode extension I can use to do this, that basically generates that boilerplate code for me to fill in?
I recently did in my code using this pattern:
/** * @notice Mints a newly minted NFT and assigns it to the caller. * @param _tokenURI The URI to be associated with the newly minted NFT. * @return newItemId The ID of the newly minted NFT. */ function mintNFT(string memory _tokenURI) public returns (uint) { require(bytes(_tokenURI).length > 0, "Token URI cannot be empty"); uint256 newItemId = _tokenIds; _mint(msg.sender, newItemId); _setTokenURI(newItemId, _tokenURI); _tokenIds += 1; emit NFTMinted(msg.sender, newItemId, _tokenURI); return newItemId; }
/**for a function. I might be mixing with some other editor/language.