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

Write invariant testing for Heap.sol #5120

Open
Amxx opened this issue Jul 23, 2024 · 1 comment
Open

Write invariant testing for Heap.sol #5120

Amxx opened this issue Jul 23, 2024 · 1 comment

Comments

@Amxx
Copy link
Collaborator

Amxx commented Jul 23, 2024

          I tried testing these invariants with [Foundry Invariant Testing](https://book.getfoundry.sh/forge/invariant-testing) without success. The reason is that we need a mock to deploy within the setup function so that it acts as the target contract to validate the invariant against.

I don't think that's needed but we may want to reconsider invariant tests

Originally posted by @ernestognw in #5084 (comment)

@Amxx
Copy link
Collaborator Author

Amxx commented Jul 23, 2024

Ref: #5084 (comment)

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

No branches or pull requests

1 participant