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

Mutates comments #38

Open
beeb opened this issue Feb 25, 2022 · 3 comments
Open

Mutates comments #38

beeb opened this issue Feb 25, 2022 · 3 comments

Comments

@beeb
Copy link

beeb commented Feb 25, 2022

See exerpt below:

[+] Survivors
Mutation:
    File: /home/.../Contract.sol
    Line nr: 495
    Result: Lived
    Original line:
             @notice Update the times for start, stop and uncap.

    Mutated line:
             @notice Update the times fo < art, stop and uncap.

Relevant code in my contract:

/**
    @notice Update the times for start, stop and uncap.
    @dev The start time cannot be changed if people already contributed. No time can be changed if the deal is over.
    @param startTimestamp Timestamp when the deal opens to investors
    @param endTimestamp Timestamp when the deal closes to investors
    @param uncapTimestamp Timestamp when the maxAlloc personal cap stops being enforced
    @param _publicTimestamp Timestamp when the whitelist stops being enforced. Set to `endTimestamp` to always enable,
        set to zero to always disable.
    */
    function updateTimestamps(
        uint256 startTimestamp,
        uint256 endTimestamp,
        uint256 uncapTimestamp,
        uint256 _publicTimestamp
    ) external onlyRole(ROLE_MANAGER) { /* ... */ }
@JoranHonig
Copy link
Owner

Hey @beeb what os are you running this on? Is there a chance that you're using windows style line endings?

@beeb
Copy link
Author

beeb commented Mar 12, 2022

Hi! No I'm using WSL2 so effectively Linux and Linux line endings.

@burke-md
Copy link

Also running into this. I ended up removing full and inline comments for tests.

Mutation:
    File: /<filepath>Contract.sol
    Line nr: 120
    Result: Lived
    Original line:
         //------------------------------------UTILS------------------------------------\\

    Mutated line:
         //-------------------------------- / -UTILS------------------------------------\\

Im on Ubuntu 20.04
Let me know if there is any other information I should be including here.

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

3 participants