github.com/cwntr/go-defi@v0.0.0-20210629134751-07f9ec2f7e66/contracts/Cache.sol (about)

     1  pragma solidity ^0.5.0;
     2  
     3  import "./lib/libCache.sol";
     4  
     5  contract Cache {
     6      using LibCache for bytes32[];
     7  
     8      bytes32[] cache;
     9  
    10      modifier isCacheEmpty() {
    11          require(cache.length == 0, "Cache not empty");
    12          _;
    13      }
    14  }