Closed PaulRBerg closed 4 months ago
There is an issue here with upgrading to v5. We have installed uniswap's version of permit2:
Which is using an older version of openzeppelin.
They are installing it because they use various utils from them, as:
This path needs to be updated to: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.0/contracts/utils/cryptography/EIP712.sol
Otherwise it would revert:
Given how much has taken them to merge the package.json
PR, should we make the update to v5 in sablier-labs/permit2
and switch back to it?
Did I mention that I remappings are a mess?
It is possible to make it work by adding this remapping:
openzeppelin-contracts/=lib/permit2/lib/openzeppelin-contracts/
But it's ugly and I would rather not tether our OZ remapping to Permit2's installation.
So yeah let's fork Permit2 again and install OZ v5 in our fork.
Comming back here because I just found out that these imports are not even used 😅
lol
@andreivladbrg you should definitely open a GitHub issue in Uniswap's repo (or even a PR) and let them know why it would be helpful to remove those unused imports
you should definitely open a GitHub issue in Uniswap's repo (or even a PR) and let them know why it would be helpful to remove those unused imports
Will do in the future. For us, it would still be the better choice to change to sablier-labs/permit2
Just like https://github.com/sablier-labs/v2-core/issues/702 and https://github.com/sablier-labs/v2-core/pull/703.
This should be implemented on a new
2.2
branch.