Skip to content

Instantly share code, notes, and snippets.

@lushiv
Created November 13, 2022 13:47
Show Gist options
  • Save lushiv/e6397ada6d906dbb8d9e48f561c113b3 to your computer and use it in GitHub Desktop.
Save lushiv/e6397ada6d906dbb8d9e48f561c113b3 to your computer and use it in GitHub Desktop.
HelloWorld sol
// My First Smart Contract
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0 <0.7.0;
contract HelloWorld {
uint inputNumber;
function storeNumber(uint x) public {
inputNumber = x;
}
function retrieveNumber() public view returns (uint) {
return inputNumber;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment