Skip to content

Commit

Permalink
Update src/RNSCommission.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 authored Jun 25, 2024
1 parent 127716f commit 255b5ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RNSCommission.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ contract RNSCommission is Initializable, AccessControlEnumerable, INSCommission
onlyRole(DEFAULT_ADMIN_ROLE)
{
if (commissionIdx >= _commissionInfos.length) revert InvalidArrayLength();
// TODO: should fix to not duplicate logic in set commision info
if (newRecipient == address(0)) revert NullAddress();

_commissionInfos[commissionIdx].recipient = newRecipient;
Expand Down

0 comments on commit 255b5ba

Please sign in to comment.