Last active
April 17, 2022 16:41
-
-
Save sohainewbie/2f8ca519bc5c115682f31c90cd3f407e to your computer and use it in GitHub Desktop.
hello.sol
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
pragma solidity 0.6.0; | |
contract Hello { | |
string fullname; | |
constructor(string memory _fullname) public { | |
fullname = _fullname; | |
} | |
function setFullname(string memory name) public view returns (string memory) { | |
return string(abi.encodePacked(fullname, name)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment