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

Update the src/test/token/TokenERC20.t.sol #667

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ianpurifying
Copy link

Add Tests for Signature Validation and Gas Efficiency

I added the testFailMintWithInvalidSignature to check if minting with an invalid signature fails as expected.
Introduced testGasMinting to log gas usage during the minting process for efficiency tracking.
Aligned MintRequest structure in tests with existing contract setup.

Reason:
Strengthens security by ensuring only valid signatures can mint tokens.
Provides insights into gas costs for minting operations.

Impact:
No breaking changes; purely additive tests for better coverage.

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