Skip to content

Instantly share code, notes, and snippets.

@rgsk
Last active November 21, 2021 09:07
Show Gist options
  • Save rgsk/9473d47564d48c5839a32032fa451b47 to your computer and use it in GitHub Desktop.
Save rgsk/9473d47564d48c5839a32032fa451b47 to your computer and use it in GitHub Desktop.
web3.0 Session
pragma solidity >=0.7.0 <0.9.0;
contract Kudos {
int startingNumber;
function setStartingNumber(int startNum) public {
startingNumber = startNum;
}
function getSum(int numToAdd) public view returns (int) {
return startingNumber + numToAdd;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment