Created
November 26, 2020 21:09
-
-
Save eum602/d7fb7118adbfbaefbb62eb381cc3fad6 to your computer and use it in GitHub Desktop.
Example of solidity function to set a value
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
function setValue(uint _amount) public { | |
emit stored(msg.sender, _amount); | |
_value = _amount; | |
_sender = msg.sender; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment