Skip to content

Instantly share code, notes, and snippets.

@eum602
Created November 26, 2020 21:09
Show Gist options
  • Save eum602/d7fb7118adbfbaefbb62eb381cc3fad6 to your computer and use it in GitHub Desktop.
Save eum602/d7fb7118adbfbaefbb62eb381cc3fad6 to your computer and use it in GitHub Desktop.
Example of solidity function to set a value
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