Created
August 29, 2018 14:55
-
-
Save vascoosx/4504209f79a3eefb155e8e889ec6cea0 to your computer and use it in GitHub Desktop.
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.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