Created
April 24, 2022 10:42
-
-
Save eugenioclrc/465ab63f9e6aba0371a410c579d594bb to your computer and use it in GitHub Desktop.
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.7; | |
/** | |
* this is a submission for ZKU (May 2022 Cohort) | |
*/ | |
contract HelloWorld { | |
// this is the stored number, will start on 0 by default | |
uint256 public theNumber; | |
/** | |
* This function will store the number submitted by a user and | |
* store it in contract public variable theNumber | |
*/ | |
function storeNumber(uint256 _number) external { | |
theNumber = _number; | |
} | |
function retrieveNumber() external view returns(uint256) { | |
return theNumber; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment