Created
April 25, 2022 02:40
-
-
Save qiwihui/c47dec5cb0104e28a92e64f4a6ce07bd to your computer and use it in GitHub Desktop.
HelloWorld.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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
contract HellowWorld { | |
uint256 number; | |
function storeNumber(uint256 num) public { | |
number = num; | |
} | |
function retrieveNumber() public view returns (uint256){ | |
return number; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment