I have a certain function logic coded for fallback function. This logic also contains some delete operations of storage variables (delete storeVarX;) due to which there might be some gas being refunded. Now the problem this is creating is, when i check the gas used by the fallback function in ethscan, it shows as 29,349. But allocating 30,000 gas or even 50,000 gas units to execute this function raises an [Out of gas] exception.
is there a way I can estimate gas consumed by fallback function, excluding the gas refund due to delete operations?