Now setting the finalized flag before doing finalization to prevent possbile reentrancy issues. (#1447)

This commit is contained in:
Nicolás Venturo
2018-10-18 18:42:57 -03:00
committed by GitHub
parent 94692acb14
commit 5bb865218f

View File

@ -34,10 +34,10 @@ contract FinalizableCrowdsale is TimedCrowdsale {
require(!_finalized);
require(hasClosed());
_finalized = true;
_finalization();
emit CrowdsaleFinalized();
_finalized = true;
}
/**
@ -47,5 +47,4 @@ contract FinalizableCrowdsale is TimedCrowdsale {
*/
function _finalization() internal {
}
}