Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save reime005/27bdef5de77595acffdf5c5f4d8b57e6 to your computer and use it in GitHub Desktop.
Save reime005/27bdef5de77595acffdf5c5f4d8b57e6 to your computer and use it in GitHub Desktop.
event ContractNameChanged(string previousContractName, string newContractName);
/// @notice Owner can change the name of the contract
/// @param newContractName The new contract name
function changeContractName(
string newContractName
) public onlyOwner {
emit ContractNameChanged(contractName, newContractName);
contractName = newContractName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment