Skip to content

Commit

Permalink
Fix compiler warnings. Issue OpenZeppelin#367
Browse files Browse the repository at this point in the history
  • Loading branch information
pash7ka committed Nov 16, 2017
1 parent 3bcc9af commit fe4c3bf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions contracts/ownership/HasNoTokens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ contract HasNoTokens is CanReclaimToken {

/**
* @dev Reject all ERC23 compatible tokens
* @param from_ address The address that is transferring the tokens
* @param value_ uint256 the amount of the specified token
* @param data_ Bytes The data passed from the caller.
* param from_ address The address that is transferring the tokens
* param value_ uint256 the amount of the specified token
* param data_ Bytes The data passed from the caller.
*/
function tokenFallback(address from_, uint256 value_, bytes data_) external {
// revert();
if(true || from_ == 0 || value_ == 0 || data_.length == 0 ) revert(); // Temporary fix for solidity compiler warning
function tokenFallback(address /*from_*/, uint256 /*value_*/, bytes /*data_*/) external {
revert();
}

}

0 comments on commit fe4c3bf

Please sign in to comment.