Skip to content

test(utils): add test for erc7201 utility function #10394

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

Closed
wants to merge 3 commits into from

Conversation

zarkk01
Copy link
Contributor

@zarkk01 zarkk01 commented Apr 27, 2025

Motivation

The erc7201 formula currently lacks dedicated tests. Introducing these tests ensures the reliability of its implementation.

Solution

Added unit tests for the erc7201 formula in utils.rs, covering , among others, a standard case of example.main to validate its behavior.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking Changes

Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, please correct the fmt issue to get it merged.

@zarkk01 zarkk01 force-pushed the test/erc7201-utils branch from 2b061dd to 1b5fcbb Compare April 28, 2025 18:31
@zarkk01
Copy link
Contributor Author

zarkk01 commented Apr 28, 2025

thank you, please correct the fmt issue to get it merged.

hey @grandizzy , is it good now? sorry, its my first PR :)

@DaniPopes
Copy link
Member

This is already tested in the documentation (doctest), these don't add anything of value

@DaniPopes DaniPopes closed this Apr 29, 2025
@github-project-automation github-project-automation bot moved this to Done in Foundry Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants