Skip to content

Commit

Permalink
Fix revert message type in mockCallRevert example (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedgiac authored Mar 29, 2024
1 parent 711a9fe commit c3e0f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cheatcodes/mock-call-revert.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function testMockCallRevert() public {
vm.mockCallRevert(
address(0),
abi.encodeWithSelector(MyToken.balanceOf.selector, address(1)),
abi.encode("REVERT_MESSAGE")
"REVERT_MESSAGE"
);
vm.expectRevert("REVERT_MESSAGE");
IERC20(address(0)).balanceOf(address(1));
Expand Down

0 comments on commit c3e0f49

Please sign in to comment.