Redundant size check
hrkrshnn opened this issue · comments
Hari commented
cacheable-beacon-proxy/contracts/CacheableBeaconProxy.sol
Lines 34 to 36 in 78ccbbc
The check if (cache.code.length > 0)
is redundant as it is done by the compiler in CacheableBeaconImpl(cache).selfDestructIfCache();
zach3040 commented
@hrkrshnn When I compile and run the test with version 0.8.13, it won't pass unless this size check is in there.
Francisco Giordano commented
Hari commented
Sorry about that 😬