Skip to content

Instantly share code, notes, and snippets.

@CodeLeom
Created January 14, 2023 12:39
Show Gist options
  • Save CodeLeom/7e0bbb4dde5dece852ef00808aa8da73 to your computer and use it in GitHub Desktop.
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
//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