Skip to content

Conversation

@lumoswiz
Copy link
Collaborator

Summary

Further splitting of ERC-20 and ERC-721 facet/modules broke the test suite. This PR fixes these issues.

Changes Made

  • Fixes existing refactor ERC-20 unit tests to fit the new style.
  • Comments out old unit tests that have not yet been refactored so the test suite compiles.

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

@netlify
Copy link

netlify bot commented Jan 16, 2026

👷 Deploy request for compose-diamonds pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit dc58b97

@github-actions
Copy link

github-actions bot commented Jan 16, 2026

Coverage Report

Coverage

Metric Coverage Details
Lines 55% 778/1416 lines
Functions 68% 201/294 functions
Branches 48% 93/192 branches

Last updated: Fri, 16 Jan 2026 12:38:22 GMT for commit dc58b97

@github-actions
Copy link

github-actions bot commented Jan 16, 2026

Gas Report

No gas usage changes detected between main and test/update-erc20-unit-tests.

All functions maintain the same gas costs. ✅

Last updated: Fri, 16 Jan 2026 12:38:27 GMT for commit dc58b97

@lumoswiz lumoswiz merged commit 1238bd3 into Perfect-Abstractions:main Jan 16, 2026
5 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.

1 participant