Skip to content

Commit

Permalink
Update test/utils/ShortStrings.t.sol
Browse files Browse the repository at this point in the history
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
  • Loading branch information
balajipachai and Amxx committed Jun 1, 2023
1 parent 653cf08 commit c2fbbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/ShortStrings.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract ShortStringsTest is Test {

function testRevertLong(string memory input) external {
vm.assume(!_isShort(input));
vm.expectRevert(abi.encodeCall(ShortStrings.StringTooLong, (input)));
vm.expectRevert(abi.encodeWithSelector(ShortStrings.StringTooLong.selector, input));
this.toShortString(input);
}

Expand Down

0 comments on commit c2fbbde

Please sign in to comment.