Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Apolloelephen/9441d1d65b13c985dad77a5f20206808 to your computer and use it in GitHub Desktop.
Save Apolloelephen/9441d1d65b13c985dad77a5f20206808 to your computer and use it in GitHub Desktop.
// 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