Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/f4941beeea7fb7597d770d77d5977b77 to your computer and use it in GitHub Desktop.
Save reime005/f4941beeea7fb7597d770d77d5977b77 to your computer and use it in GitHub Desktop.
event AddressNameChanged(address changer, string previousValue, string newValue);
/// @notice Changes the name for the sender's address
/// @param newName The new name for the sender's address
function changeAddressName(
string newName
) public {
emit AddressNameChanged(msg.sender, addressNames[msg.sender], newName);
addressNames[msg.sender] = newName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment