Skip to content

Commit

Permalink
Check the specific error not a general revert
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundedgar committed Mar 1, 2024
1 parent 410da88 commit 64731ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/ForkableRealityETH.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,7 @@ contract ForkableRealityETHTest is Test {

// Withdraw is banned because we're frozen
vm.prank(answerGuyYes1);
//vm.expectRevert(ForkableRealityETH_ERC20.ContractIsFrozen.selector);
vm.expectRevert();
vm.expectRevert(IRealityETHErrors.ContractIsFrozen.selector);
ForkableRealityETH_ERC20(forkableRealityETH).withdraw();

// No balance on the child yet
Expand Down

0 comments on commit 64731ab

Please sign in to comment.