Skip to content

Instantly share code, notes, and snippets.

@adeleke5140
Last active April 21, 2022 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adeleke5140/920851377163016a11d327743e32428a to your computer and use it in GitHub Desktop.
Save adeleke5140/920851377163016a11d327743e32428a to your computer and use it in GitHub Desktop.
Hello World smart contract
// 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