Skip to content

Instantly share code, notes, and snippets.

@vascoosx
Created August 29, 2018 14:55
Show Gist options
  • Save vascoosx/4504209f79a3eefb155e8e889ec6cea0 to your computer and use it in GitHub Desktop.
Save vascoosx/4504209f79a3eefb155e8e889ec6cea0 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.11;
contract AddressStore {
address[] public bought;
address public selected;
function sb(uint256 _index) public returns (address){
uint256 i = _index;
selected = bought[i];
return selected;
}
// set the addresses in store
function setStore(address[] _addresses) public returns (bool){
bought = _addresses;
return true;
}
function setNumber(uint[] n) public returns (bool){
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment