Skip to content

Instantly share code, notes, and snippets.

@Violet-Bora-Lee
Created November 9, 2023 08:25
Show Gist options
  • Save Violet-Bora-Lee/5a5963c187aaa5b87e0e1d7c8987fbdf to your computer and use it in GitHub Desktop.
Save Violet-Bora-Lee/5a5963c187aaa5b87e0e1d7c8987fbdf to your computer and use it in GitHub Desktop.
Mood Diary
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
contract MoodDiary {
string mood;
function setMood(string memory _mood) public {
mood = _mood;
}
function getMood() public view returns (string memory) {
return mood;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment