function approveUsers(address[] users) onlyOwner {
for(uint i=0; i<users.length; i++) {
approvedUsers[users[i]] = true; //Mapping {address: bool}
ApproveUserForPreSale(users[i], approvedUsers[users[i]]); //Event
}
}
I'm getting a zero length array with this snippet. And if I take users as static array( address[10] users), I get the correct length but the contents are 0(0x0..).
edit This is working on Remix Studio as Expected, but not on Ethereum Wallet.
approveUsers? Is it from javascript or from another solidity contract? – Ismael Sep 12 '17 at 18:32