Now setting the finalized flag before doing finalization to prevent possbile reentrancy issues. (#1447)
(cherry picked from commit 5bb865218f)
This commit is contained in:
committed by
Leo Arias
parent
6e53c4e129
commit
a9bffb3787
@ -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 {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user