Skip to content

Conversation

@panditdhamdhere
Copy link
Collaborator

  • Add permit() function for gasless approvals
  • Add nonces mapping for replay attack prevention
  • Add DOMAIN_SEPARATOR for EIP-712 compliance
  • Add initializeERC20() for token metadata setup
  • Follow Compose diamond pattern and coding standards
  • Full EIP-2612 specification compliance

Fixes #7

- Add permit() function for gasless approvals
- Add nonces mapping for replay attack prevention
- Add DOMAIN_SEPARATOR for EIP-712 compliance
- Add initializeERC20() for token metadata setup
- Follow Compose diamond pattern and coding standards
- Full EIP-2612 specification compliance

Fixes Perfect-Abstractions#7
- Resolved conflicts between feature branch and main
- Kept EIP-2612 nonces mapping and functions
- Incorporated improved documentation from main
- Maintained all EIP-2612 permit functionality
@mudgen
Copy link
Contributor

mudgen commented Oct 19, 2025

@panditdhamdhere, wow, this looks great! Good job. Right now I can't merge it because there are merge conflicts (because comments were added). Can you please fix the conflicts so I can merge your code?

Please remove the initializeERC20 function. We are going to initialize facets a different way, talked about in the blog post here: https://eip2535diamonds.substack.com/p/initializing-an-eip-2535-diamond

@mudgen mudgen merged commit f00dd4b into Perfect-Abstractions:main Oct 19, 2025
1 check failed
@mudgen
Copy link
Contributor

mudgen commented Oct 19, 2025

Merged. Thank you

JackieXu pushed a commit to JackieXu/Compose that referenced this pull request Nov 6, 2025
…re/erc20-permit-extension

feat: implement ERC-20 Permit extension (EIP-2612)
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

Successfully merging this pull request may close these issues.

Implement ERC-20 Permit extension

2 participants