Created
May 1, 2022 18:30
-
-
Save DavideSilva/7f8dc6024cd2ee7e373b638f7db7c3ca to your computer and use it in GitHub Desktop.
HelloWorld Solidity contract for ZKUni
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 HelloWorld { | |
uint256 number; | |
/** | |
* @param _number value to store | |
*/ | |
function storeNumber(uint256 _number) public { | |
number = _number; | |
} | |
/** | |
* @return value of 'number' | |
*/ | |
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