Skip to content

Commit

Permalink
add revert check in the fuzz test
Browse files Browse the repository at this point in the history
  • Loading branch information
bxmmm1 committed Sep 23, 2024
1 parent 23f2c7f commit f8a4bd4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mainnet-contracts/test/unit/PufferWithdrawalManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ contract PufferWithdrawalManagerTest is UnitTestHelper {

withdrawalManager.completeQueuedWithdrawal(i);
}

uint256[] memory batches = new uint256[](1);
batches[0] = 1;

// If there is no excess ETH, this should revert
vm.expectRevert(IPufferWithdrawalManager.AlreadyReturned.selector);
withdrawalManager.returnExcessETHToVault(batches);
}

/**
Expand Down

0 comments on commit f8a4bd4

Please sign in to comment.