Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Created November 23, 2017 12:00
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 lukehedger/eaf164a82a3de671c4e739545ae643ed to your computer and use it in GitHub Desktop.
Save lukehedger/eaf164a82a3de671c4e739545ae643ed to your computer and use it in GitHub Desktop.
Solidity contract that echoes a number
pragma solidity ^0.4.18;
contract Echo {
event Echoed(uint echoValue);
function echo(uint _value) public returns (uint) {
Echoed(_value);
return _value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment