ProjectOpenSea / operator-filter-registry

MIT License
312 stars 93 forks source link

Change Constants pragma to ^0.8.13 #92

Closed WillPapper closed 1 year ago

WillPapper commented 1 year ago

All source files require Solidity ^0.8.13 besides Constants.sol, which requires ^0.8.17: https://github.com/search?q=repo%3AProjectOpenSea%2Foperator-filter-registry+pragma+solidity+path%3Asrc%2F&type=code&p=1

As a result, when you attempt to use the DefaultOperatorFilterer with a Solidity version between 0.8.13 and 0.8.16, you receive the following error: ParserError: Source file requires different compiler version.

Constants.sol does not appear to leverage any language features that require Solidity version 0.8.17, so updating the pragma allows the Operator Filter to compile with a wider range of Solidity versions.

operatorfilterer commented 1 year ago

Thanks!