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 Nov 16, 2017
1 parent c55d3dc commit 6cd996d
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 @@ -18,7 +18,8 @@ contract HasNoTokens is CanReclaimToken {
* @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
}

}

0 comments on commit 6cd996d

Please sign in to comment.