Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created March 21, 2020 17:08
Show Gist options
  • Save alexroan/5651540096380de240b55b98251ffeea to your computer and use it in GitHub Desktop.
Save alexroan/5651540096380de240b55b98251ffeea to your computer and use it in GitHub Desktop.
truffle-tests/Background.sol
pragma solidity >=0.5.0;
contract Background {
uint[] private values;
function storeValue(uint value) public {
values.push(value);
}
function getValue(uint initial) public view returns(uint) {
return values[initial];
}
function getNumberOfValues() public view returns(uint) {
return values.length;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment