Skip to content

Instantly share code, notes, and snippets.

@qiwihui
Created April 25, 2022 02:40
Show Gist options
  • Save qiwihui/c47dec5cb0104e28a92e64f4a6ce07bd to your computer and use it in GitHub Desktop.
Save qiwihui/c47dec5cb0104e28a92e64f4a6ce07bd to your computer and use it in GitHub Desktop.
HelloWorld.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract HellowWorld {
uint256 number;
function storeNumber(uint256 num) public {
number = num;
}
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