final fix for ETH balance calculations in getUserWalletBalances

This commit is contained in:
andyk 2020-11-10 10:33:53 +02:00
parent ef98aadd66
commit 6a3695c5b7

View File

@ -107,7 +107,7 @@ contract WalletBalanceProvider {
}
balances[j] = balanceOf(user, reservesWithEth[j]);
}
balances[reservesWithEth.length] = balanceOf(user, MOCK_ETH_ADDRESS);
balances[reserves.length] = balanceOf(user, MOCK_ETH_ADDRESS);
return (reservesWithEth, balances);
}