Skip to content

Instantly share code, notes, and snippets.

@rumkin
Last active January 29, 2020 23:55
Show Gist options
  • Save rumkin/285904153106fbb976bbd56ce671ae20 to your computer and use it in GitHub Desktop.
Save rumkin/285904153106fbb976bbd56ce671ae20 to your computer and use it in GitHub Desktop.
pragma solidity >= 0.5.0;
contract Log {
address public owner;
event LogMsg(bytes message);
constructor(address _owner) public {
owner = _owner;
}
function log(bytes memory message)
public
{
require(msg.sender == owner, 'owner_only');
emit LogMsg(message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment