Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probably should store domain separator as a constant in the constructor. #21

Open
pakim249CAL opened this issue Feb 28, 2022 · 0 comments

Comments

@pakim249CAL
Copy link
Contributor

return keccak256(abi.encode(EIP712_DOMAIN, keccak256(bytes(name())), keccak256(EIP712_REVISION), chainId, address(this)));

also, EIP2612 defines DOMAIN_SEPARATOR, not getDomainSeparator. probably a good idea to change this to conform to standards.

@Timidan Timidan mentioned this issue Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant