Bug: Can't send array of addresses to contract
Author: rizhenkovCreated Sep 18, 2017Updated Jun 1, 2020
LabelsType: Bugv0.9.0External: ethereum walletStatus: Triage
- I've asked for help in the Mist Gitter before filing this issue.
Version: `0.9.0`
OS & Version: osx
Node version: `geth 1.6.6`
Number of blocks synchronized: 917044 (Rinkeby)When trying to put addresses array as method parameters — this array can't compiled to transaction bytecode and not sending to contract (not errors). Contract worked, tested at Parity client (and that method works at parity).
Method code:
function distribution(address[] holdersAddresses, uint256[] balancesValues)
{
for (uint i = 0; i < holdersAddresses.length; i++) {
uint amount = balancesValues[i];
address holderAddr = holdersAddresses[i];
if(amount > 0){
balances[holderAddr] += amount;
totalSupply += amount;
}
}
}Source: ethereum/mist