// ConsenSys Diligence // DevCon V - October 2019 // Osaka, Japan pragma solidity ^0.5.4; // Say Hi //Deployed at Ropsten: 0x0f6501d05272b95b8ad35c64f1939626ff01c81d contract helloWorld { //Storage variables string public name; address private owner; //Defining events event Hi(string name); constructor() public { owner = msg.sender; } function sayHi(string memory _name) public { //change the name if owner calls if (msg.sender == owner) { name = _name; } //call event emit Hi(_name); } //fallback function. function() external { emit Hi("Hello World"); } } // ______ _____ // / ____/___ ____ ________ ____ / ___/__ _______ // / / / __ \/ __ \/ ___/ _ \/ __ \\__ \/ / / / ___/ // / /___/ /_/ / / / (__ ) __/ / / /__/ / /_/ (__ ) // \__________/___/_/____/\___/_/ /_/____/\__, /____/ // / __ \(_) (_)___ ____ ____ ______//___/ // / / / / / / / __ `/ _ \/ __ \/ ___/ _ \ // / /_/ / / / / /_/ / __/ / / / /__/ __/ // /_____/_/_/_/\__, /\___/_/ /_/\___/\___/ // /____/