Created
January 14, 2023 12:39
-
-
Save CodeLeom/7e0bbb4dde5dece852ef00808aa8da73 to your computer and use it in GitHub Desktop.
this is my first solidity contract at the 4 saturday of solidity bootcamp
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: MIT | |
pragma solidity ^0.8.0; | |
contract Mood { | |
string currentMood; | |
function setMood(string memory _newMood) external { | |
currentMood = _newMood; | |
} | |
function getMood() external view returns( string memory){ | |
return currentMood; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment