This Solidity smart contract, SimpleStorage, allows users to store and retrieve favorite numbers. It also enables adding people's favorite numbers along with their names.
- store(uint256 _favoritenumber): Stores the provided favorite number.
- retrieve(): Retrieves the stored favorite number.
- addperson(string memory _name, uint256 _favoritenumber): Adds a person's favorite number along with their name.
People: Represents a person with their favorite number and name.
- Deployment: Deploy the contract to an EVM network.
- Use store to store your favorite number.
- Use retrieve to retrieve your stored favorite number.
- Use addperson to add a person's favorite number with their name.