Ethereum wallet displays:
It seems this transaction will fail.
But why? Here is the code:
function () payable {
uint amount = 0;
amount += msg.value;
balanceOf[msg.sender] += amount;
amountRaised += amount;
tokenReward.transfer(msg.sender, amount / price);
FundTransfer(msg.sender, amount, true);
}
This code doesn't throw exception or smth... Please help me. I get Crowdsale contract code from ethereum website
tokenReward
.