Skip to content

Instantly share code, notes, and snippets.

@DavideSilva
Created May 1, 2022 18:30
Show Gist options
  • Save DavideSilva/7f8dc6024cd2ee7e373b638f7db7c3ca to your computer and use it in GitHub Desktop.
Save DavideSilva/7f8dc6024cd2ee7e373b638f7db7c3ca to your computer and use it in GitHub Desktop.
HelloWorld Solidity contract for ZKUni
// 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