fei-protocol/flywheel-v2

Test `testPastVotes` is failing

Opened this issue · 1 comments

kphed commented

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.

kphed commented

Updated the original description to be clearer.