Fix flaky test testFuzzFutureBlocks (#5783)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Wael
2025-07-06 18:49:39 +02:00
committed by GitHub
parent 0aaa23e57d
commit f9f7db03f3

View File

@ -67,6 +67,7 @@ contract BlockhashTest is Test {
function testFuzzFutureBlocks(uint256 offset, uint256 currentBlock) public {
// Future blocks
offset = bound(offset, 1, type(uint256).max);
currentBlock = bound(currentBlock, 0, type(uint256).max - offset);
vm.roll(currentBlock);
unchecked {