diff --git a/src/mocks/CacheManager.sol b/src/mocks/CacheManager.sol index 10baff3..c78eb86 100644 --- a/src/mocks/CacheManager.sol +++ b/src/mocks/CacheManager.sol @@ -140,7 +140,7 @@ contract CacheManager { uint64 size, uint64 index ) internal { - if (queueSize + size < cacheSize) { + if (queueSize + size > cacheSize) { revert AsmTooLarge(size, queueSize, cacheSize); }