Skip to content

drakon2810/SimpleContract

Repository files navigation

SampleContract

The contract includes functions to set and get the name and age values, as well as methods to store and retrieve name-age pairs using a mapping.

Description

The contract includes functions to set and get the name and age values, as well as methods to store and retrieve name-age pairs using a mapping.

Functionalities

  • setName: Sets the name of the contract.
  • getName: Retrieves the name of the contract.
  • setAge: Sets the age of the contract.
  • getAge: Retrieves the age of the contract.
  • setNameAge: Stores a name-age pair in a mapping.
  • checkNameAge: Retrieves the age associated with a given name from the mapping.

Usage

This contract can be deployed on any Ethereum-compatible blockchain network or development environment. It provides basic functionalities for storing and retrieving name-age information.

License

This contract is available under the UNLICENSED license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published