This file contains 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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/// @title HotelGreeting | |
/// @author Connor Phillips (blockchain@connorphillips.com) | |
/// @notice Purpose of the contract is to leave a greeting to a guest who has arrived | |
/// @dev All function calls are currently implemented without side effects | |
contract HotelGreeting { | |
This file contains 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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/// @title VisibiltyExample | |
/// @author Connor Phillips (blockchain@connorphillips.com) | |
/// @notice Purpose of the contract is to show how visibility works | |
/// @dev All function calls are currently implemented without side effects | |
contract VisibiltyExample { | |
string greeting = "Hello World!"; // The default visibility for state variables are internal |