Skip to content

Conversation

@akronim26
Copy link
Contributor

Summary

Reordered the struct variables in the LibERC20 to match the design of the ERC20

Changes Made

Separated the ERC20Storage and ERC20PermitStorage struct

Checklist

Before submitting this PR, please ensure:

  • Code follows the Solidity feature ban - No inheritance, constructors, modifiers, public/private variables, external library functions, using for directives, or selfdestruct

  • Code follows Design Principles - Readable, uses diamond storage, favors composition over inheritance

  • Code matches the codebase style - Consistent formatting, documentation, and patterns (e.g. ERC20Facet.sol)

  • Code is formatted with forge fmt

  • Existing tests pass - Run tests to be sure existing tests pass.

  • New tests are optional - If you don't provide tests for new functionality or changes then please create a new issue so this can be assigned to someone.

  • All tests pass - Run forge test and ensure everything works

  • Documentation updated - If applicable, update relevant documentation

Make sure to follow the contributing guidelines.

Additional Notes

@netlify
Copy link

netlify bot commented Nov 27, 2025

👷 Deploy request for compose-diamonds pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a920782

@github-actions
Copy link

Coverage Report

Coverage

Metric Coverage Details
Lines 87% 1941/2231 lines
Functions 89% 371/416 functions
Branches 74% 275/373 branches

Last updated: Thu, 27 Nov 2025 17:22:05 GMT for commit a920782

@github-actions
Copy link

Gas Report

No gas usage changes detected between main and reorder/LibERC20.

All functions maintain the same gas costs. ✅

Last updated: Thu, 27 Nov 2025 17:22:53 GMT for commit a920782

@mudgen
Copy link
Contributor

mudgen commented Nov 27, 2025

@akronim26 Thanks 👍

@mudgen mudgen merged commit 9a2bd17 into Perfect-Abstractions:main Nov 27, 2025
4 checks passed
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.

2 participants