Uniswap/permit2

`PermitSignature` util cannot be used because of `Permit2` import

Closed this issue · 1 comments

Permit2 uses a frozen Solidity version in its pragma, i.e. 0.8.17:

pragma solidity 0.8.17;

This contract is imported in the PermitSignature util:

import {Permit2} from "../../src/Permit2.sol";

This in turn means that nobody can use this utility contract unless they are using Solidity v0.8.17, too:

Error (5333): Source file requires different compiler version (current compiler is 0.8.19+commit.7dd6d404.Darwin.appleclang) - note that nightly builds are considered to be strictly less than the released version
 --> lib/permit2/src/Permit2.sol:2:1:
  |
2 | pragma solidity 0.8.17;

Closed via #215.