Skip to content

Instantly share code, notes, and snippets.

@KolevDarko
Created August 2, 2022 08:46
Show Gist options
  • Save KolevDarko/9b9ba91efadaf83c518e4c78081a4670 to your computer and use it in GitHub Desktop.
Save KolevDarko/9b9ba91efadaf83c518e4c78081a4670 to your computer and use it in GitHub Desktop.
Solidity Hello World
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment