Skip to content

Commit 1d430ca

Browse files
Remove redundant storage _setFeeRecipient (#9)
1 parent 1d9a4c8 commit 1d430ca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/QueryTypeStakerFactory.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ contract QueryTypeStakerFactory is Ownable {
7979
/// @param _newRecipient The new address to receive fees.
8080
function _setFeeRecipient(address _newRecipient) internal {
8181
if (_newRecipient == address(0)) revert QueryTypeStakerFactory__InvalidRecipient();
82-
address old = feeRecipient;
82+
emit FeeRecipientUpdated(feeRecipient, _newRecipient);
8383
feeRecipient = _newRecipient;
84-
emit FeeRecipientUpdated(old, _newRecipient);
8584
}
8685
}

0 commit comments

Comments
 (0)