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

pull/1451/head
Nicolás Venturo 6 years ago committed by GitHub
parent 94692acb14
commit 5bb865218f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      contracts/crowdsale/distribution/FinalizableCrowdsale.sol

@ -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 {
}
}

Loading…
Cancel
Save