Skip to content

Instantly share code, notes, and snippets.

@ilamanov
Created April 10, 2022 20:32
Show Gist options
  • Select an option

  • Save ilamanov/d39dd8f08095d8c092898f0341a5c8d7 to your computer and use it in GitHub Desktop.

Select an option

Save ilamanov/d39dd8f08095d8c092898f0341a5c8d7 to your computer and use it in GitHub Desktop.
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