Last active
April 21, 2022 20:14
-
-
Save adeleke5140/920851377163016a11d327743e32428a to your computer and use it in GitHub Desktop.
Hello World smart contract
This file contains 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: GPL-3.0 | |
pragma solidity ^0.8.7; | |
contract HelloWorld{ | |
function storeNumber() pure internal returns (uint myNumber) { | |
myNumber = 5; | |
} | |
function retrieveNumber() pure public returns (uint myNum_){ | |
myNum_ = storeNumber(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment