Hi, i am working on a security token based on ERC20.
I want my contract to inherit from ERC20PermitUpgradeable but i don't understand why EIP712Upgradeable initializes from ERC20Permit with a fixed version number :
__EIP712_init_unchained(name, "1");
As I am using UUPS Proxy, I assume the version (here 1) should be a variable so it can be changed when I create a new implementation. How is it possible to initialize EIP712 from my implementation with the correct version ?
up
Please can you help how i can set the right version for EIP712 from my token ?
Do i have to init EIP712 from Token which inherits from ERC20PermitUpgradeable ?