Created
December 27, 2020 21:08
-
-
Save reime005/f4941beeea7fb7597d770d77d5977b77 to your computer and use it in GitHub Desktop.
This file contains 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
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