Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Feb 10, 2025
1 parent f54368b commit 95a18f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/contracts/treasury/Collector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ contract Collector is AccessControlUpgradeable, ReentrancyGuardUpgradeable, ICol
*/
modifier onlyAdminOrRecipient(uint256 streamId) {
if (_onlyFundsAdmin() == false && msg.sender != _streams[streamId].recipient) {
revert OnlyFundsAdminOrRceipient();
revert OnlyFundsAdminOrRecipient();
}
_;
}
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/treasury/ICollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface ICollector {
/**
* @dev Only caller with FUNDS_ADMIN role or stream recipient can call
*/
error OnlyFundsAdminOrRceipient();
error OnlyFundsAdminOrRecipient();

/**
* @dev The provided ID does not belong to an existing stream
Expand Down
4 changes: 2 additions & 2 deletions tests/treasury/Collector.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ contract StreamsTest is CollectorTest {
vm.prank(FUNDS_ADMIN);
uint256 streamId = createStream();

vm.expectRevert(ICollector.OnlyFundsAdminOrRceipient.selector);
vm.expectRevert(ICollector.OnlyFundsAdminOrRecipient.selector);
collector.withdrawFromStream(streamId, 1 ether);
}

Expand Down Expand Up @@ -411,7 +411,7 @@ contract StreamsTest is CollectorTest {
vm.prank(FUNDS_ADMIN);
uint256 streamId = createStream();

vm.expectRevert(ICollector.OnlyFundsAdminOrRceipient.selector);
vm.expectRevert(ICollector.OnlyFundsAdminOrRecipient.selector);
vm.prank(makeAddr('random'));

collector.cancelStream(streamId);
Expand Down

0 comments on commit 95a18f5

Please sign in to comment.