Skip to content

AftAb-25/MoodTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

MoodTracker

🧠 MoodTracker Smart Contract (Beginner Project)

This is a very simple beginner-level Solidity smart contract that allows users to store and read a mood on the blockchain.
It is perfect for students who are just starting with Blockchain & Smart Contracts.


πŸ“Œ Project Idea

A Mood Tracker where:

  • You can set your mood (like "happy", "sad", "excited")
  • You can read the saved mood
  • No inputs are required during deployment

πŸ›  Tech Used

  • Solidity (Smart Contract Language)
  • Remix IDE (For testing & deployment)

πŸ“„ Smart Contract Code

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract MoodTracker {

    // This variable stores the mood
    string public mood;

    // Function to set the mood
    function setMood(string memory _mood) public {
        mood = _mood;
    }

    // Function to get the mood
    function getMood() public view returns (string memory) {
        return mood;
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors