Created
March 21, 2020 17:08
-
-
Save alexroan/5651540096380de240b55b98251ffeea to your computer and use it in GitHub Desktop.
truffle-tests/Background.sol
This file contains hidden or 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
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