Skip to content

Test testPastVotes is failing #69

Description

@kphed

The test fails because the starting block.number is 1, causing this assertion to fail: https://github.com/fei-protocol/flywheel-v2/blob/main/src/test/token/ERC20MultiVotes.t.sol#L247.

        hevm.roll(1);
        uint256 block2 = block.number;
        require(block2 == block1 + 1);

hevm.roll sets the block number to 1 and the required condition (block2 == block1 + 1) is unmet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions