Skip to content

Commit

Permalink
refactor: remove double r
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg authored and andreivladbrg committed Nov 28, 2023
1 parent df8107a commit 39db1bf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/abstracts/SablierV2Lockup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ abstract contract SablierV2Lockup is
override
{
if (!isTransferable(streamId) && to != address(0) && from != address(0)) {
revert Errors.SablierV2Lockup_NotTransferrable(streamId);
revert Errors.SablierV2Lockup_NotTransferable(streamId);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ library Errors {
error SablierV2Lockup_InvalidSenderWithdrawal(uint256 streamId, address sender, address to);

/// @notice Thrown when trying to transfer Stream NFT when transferability is disabled.
error SablierV2Lockup_NotTransferrable(uint256 tokenId);
error SablierV2Lockup_NotTransferable(uint256 tokenId);

/// @notice Thrown when the id references a null stream.
error SablierV2Lockup_Null(uint256 streamId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract contract IsTransferable_Integration_Concrete_Test is Integration_Test,
_;
}

function test_IsTransferrable_Stream() external givenNotNull givenStreamTransferable {
function test_IsTransferable_Stream() external givenNotNull givenStreamTransferable {
bool isTransferable = lockup.isTransferable(defaultStreamId);
assertTrue(isTransferable, "isTransferable");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract contract TransferFrom_Integration_Concrete_Test is Integration_Test, Lo
function test_RevertGiven_StreamNotTransferable() external {
uint256 notTransferableStreamId = createDefaultStreamNotTransferable();
vm.expectRevert(
abi.encodeWithSelector(Errors.SablierV2Lockup_NotTransferrable.selector, notTransferableStreamId)
abi.encodeWithSelector(Errors.SablierV2Lockup_NotTransferable.selector, notTransferableStreamId)
);
lockup.transferFrom({ from: users.recipient, to: users.alice, tokenId: notTransferableStreamId });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ abstract contract WithdrawMaxAndTransfer_Integration_Concrete_Test is
{
uint256 notTransferableStreamId = createDefaultStreamNotTransferable();
vm.expectRevert(
abi.encodeWithSelector(Errors.SablierV2Lockup_NotTransferrable.selector, notTransferableStreamId)
abi.encodeWithSelector(Errors.SablierV2Lockup_NotTransferable.selector, notTransferableStreamId)
);
lockup.withdrawMaxAndTransfer({ streamId: notTransferableStreamId, newRecipient: users.recipient });
}
Expand Down

0 comments on commit 39db1bf

Please sign in to comment.