Created
November 13, 2022 13:47
-
-
Save lushiv/e6397ada6d906dbb8d9e48f561c113b3 to your computer and use it in GitHub Desktop.
HelloWorld sol
This file contains hidden or 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
// My First Smart Contract | |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.5.0 <0.7.0; | |
contract HelloWorld { | |
uint inputNumber; | |
function storeNumber(uint x) public { | |
inputNumber = x; | |
} | |
function retrieveNumber() public view returns (uint) { | |
return inputNumber; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment