Created
April 5, 2024 12:17
-
-
Save Apolloelephen/9441d1d65b13c985dad77a5f20206808 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
contract MessageApp { | |
string name; | |
function setTheName(string memory _name) public { | |
name = _name; | |
} | |
function getTheName() public view returns (string memory) { | |
return name; | |
} | |
function add(uint a, uint b) public pure returns (uint c) { | |
c = a + b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment