Skip to content

Commit

Permalink
Fix for solidity compiler warnings, issue OpenZeppelin#367.
Browse files Browse the repository at this point in the history
Crazy and temporary solution, but it's working.
  • Loading branch information
pash7ka committed Aug 28, 2017
1 parent c2d667c commit 89f49b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/ownership/HasNoTokens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ contract HasNoTokens is Ownable {
* @param data_ Bytes The data passed from the caller.
*/
function tokenFallback(address from_, uint256 value_, bytes data_) external {
revert();
// revert();
if(true || from_ == 0 || value_ == 0 || data_.length == 0 ) revert(); // Temporary fix for solidity compiler warning
}

/**
Expand Down

0 comments on commit 89f49b9

Please sign in to comment.