Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove double r #729

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading