From 61fcaaf4442b6c5f9f7cee1bc81d2c48d12dedb1 Mon Sep 17 00:00:00 2001 From: Pavel Rubin Date: Mon, 28 Aug 2017 11:57:45 +0300 Subject: [PATCH] Fix for solidity compiler warnings, issue #367. Crazy and temporary solution, but it's working. --- contracts/ownership/HasNoTokens.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/ownership/HasNoTokens.sol b/contracts/ownership/HasNoTokens.sol index 5dc1220e8cd..e878d3bf579 100644 --- a/contracts/ownership/HasNoTokens.sol +++ b/contracts/ownership/HasNoTokens.sol @@ -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 } }