Skip to content

Instantly share code, notes, and snippets.

@eugenioclrc
Created April 24, 2022 10:42
Show Gist options
  • Save eugenioclrc/465ab63f9e6aba0371a410c579d594bb to your computer and use it in GitHub Desktop.
Save eugenioclrc/465ab63f9e6aba0371a410c579d594bb to your computer and use it in GitHub Desktop.
// 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