Skip to content

SimpleStorage Smart Contract This repository contains a Solidity smart contract named SimpleStorage. The primary purpose of this contract is to demonstrate a basic structure with a state variable and a function to update its value.

Notifications You must be signed in to change notification settings

S-keptic/NFT-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SimpleStorage Smart Contract

This is a basic implementation of a Solidity smart contract named SimpleStorage. The contract includes a state variable favNumber and a function store to update this variable. Smart Contract Details

Solidity Version: ^0.8.18  
License: MIT

State Variable

favNumber: Unsigned integer (uint256) representing a favorite number. It is initially set to 0.

Functions store

Visibility: Public
Parameters: _favnumber (uint256)
Description: Updates the favNumber state variable with the provided value.

Usage

Deploy the smart contract on a compatible blockchain.
Call the store function with your favorite number to update the favNumber variable.

solidity

// Example: // Set your favorite number to 42 simpleStorage.store(42);

About

SimpleStorage Smart Contract This repository contains a Solidity smart contract named SimpleStorage. The primary purpose of this contract is to demonstrate a basic structure with a state variable and a function to update its value.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published