-
Notifications
You must be signed in to change notification settings - Fork 1.4k
crowsale example issue. #799
Comments
I'm currently facing the same issue, crowdsales execution terminate at the point
Are you able to work around it? Please help! |
@samsoft00 i use open zepplin library. 1.7.0 version. allowancecrowdsale. |
@samsoft00 create token first. create crowdsale. then u have to approve tokenwallet to crowdsale. |
I think there are two more issues with the example.
@leochan007 can you explain how to use the code you posted. On the example of the How does this change with the allowance, does it solve the problems I mentioned above (I see it has a |
function () payable {
require(!crowdsaleClosed);
uint amount = msg.value;
balanceOf[msg.sender] += amount;
amountRaised += amount;
tokenReward.transfer(msg.sender, amount / price);
FundTransfer(msg.sender, amount, true);
}
is this correct for crowsale??
anyone who wanna buytoken may don't have token at all. how to transfer the token to himself?
The text was updated successfully, but these errors were encountered: