Created
April 10, 2022 20:32
-
-
Save ilamanov/d39dd8f08095d8c092898f0341a5c8d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| function updateProjectName( | |
| uint256 _projectId, | |
| string memory _projectName) | |
| onlyUnlocked(_projectId) | |
| onlyArtistOrWhitelisted(_projectId) public { | |
| projects[_projectId].name = _projectName; | |
| } | |
| function updateProjectDescription( | |
| uint256 _projectId, | |
| string memory _projectDescription) | |
| onlyArtist(_projectId) public { | |
| projects[_projectId].description = _projectDescription; | |
| } | |
| function toggleProjectIsLocked(uint256 _projectId) | |
| public onlyWhitelisted onlyUnlocked(_projectId) { | |
| projects[_projectId].locked = true; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment