pragma solidity ^0.4.19; contract Bought { address[] bought; // set the sender of the transaction as "bought" function setBought() public { bought.push(msg.sender); } function getAllBought() public constant returns(address[]) { return bought; } }
0.4.19