Closed Chococoin closed 6 years ago
I'm testing the tokensale contract in remix and I think this line isn't working as expected.
require(tokenContract.transfer(msg.sender, _numberOfTokens));
Its returns false, because it doesn't complete the transfer. For the same reason
tokensSold += _numberOfTokens
doesn't execute.
I saw all the test you did in truffle, but I'm not really sure if this case was completed. In that case Remix could be the problem.
Regards.
I was passing wrongly arguments in the buyTokens function.
Sorry.
I'm testing the tokensale contract in remix and I think this line isn't working as expected.
require(tokenContract.transfer(msg.sender, _numberOfTokens));
Its returns false, because it doesn't complete the transfer. For the same reason
tokensSold += _numberOfTokens
doesn't execute.
I saw all the test you did in truffle, but I'm not really sure if this case was completed. In that case Remix could be the problem.
Regards.