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

Optimization tests should support inputs and uint return value #486

Open
tuturu-tech opened this issue Sep 19, 2024 · 0 comments
Open

Optimization tests should support inputs and uint return value #486

tuturu-tech opened this issue Sep 19, 2024 · 0 comments

Comments

@tuturu-tech
Copy link

Currently optimization tests only support optimize_* functions with no inputs and a int output, as visible here. It would be useful to have optimization tests that support inputs and uint outputs as well.

Example of optimization test that currently won't be run:

    function optimize_rateDifference() public returns (uint256) {
        if (newRate < startingRate) {
            return startingRate - newRate;
        }
        return 0;
    }
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