Browse Source

Added a constructor to BreakInvariantBounty. (#1395)

Nicolás Venturo 7 years ago
parent
commit
3acc2b4216
1 changed files with 5 additions and 1 deletions
  1. 5 1
      contracts/bounties/BreakInvariantBounty.sol

+ 5 - 1
contracts/bounties/BreakInvariantBounty.sol

@@ -8,12 +8,16 @@ import "../ownership/Ownable.sol";
  * @dev This bounty will pay out to a researcher if they break invariant logic of the contract.
  */
 contract BreakInvariantBounty is PullPayment, Ownable {
-  bool private _claimable = true;
+  bool private _claimable;
   mapping(address => address) private _researchers;
 
   event TargetCreated(address createdAddress);
   event BountyCanceled();
 
+  constructor() public {
+    _claimable = true;
+  }
+
   /**
    * @dev Fallback function allowing the contract to receive funds, if they haven't already been claimed.
    */