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

add support for the label cheat #481

Open
bohendo opened this issue Sep 17, 2024 · 0 comments
Open

add support for the label cheat #481

bohendo opened this issue Sep 17, 2024 · 0 comments

Comments

@bohendo
Copy link

bohendo commented Sep 17, 2024

Commonly used in foundry unit tests, adding support for this cheatcode will get us closer to being able to re-use existing setUp functions out-of-the-box, eg:

import { ExistingUnitTestBase } from "./ExistingUnitTestBase.sol";

contract MedusaHarness is ExistingUnitTestBase {
    function setUp() public virtual override {
        ExistingUnitTestBase.setUp();
    }

    // now fuzz fns & invariant checks have access to eg an example system deployment, helpful addresses/tokens, etc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants