Skip to content

Commit

Permalink
fixed style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mllwchrry committed Jun 3, 2024
1 parent 7ea477c commit 3c671d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/access/MultiOwnable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ abstract contract MultiOwnable is IMultiOwnable, Initializable {
*/
function _addOwners(address[] memory newOwners_) private {
bool isSetEmpty_ = _owners.length() == 0;

_owners.add(newOwners_);

require(!_owners.contains(address(0)), "MultiOwnable: zero address can not be added");
Expand All @@ -125,6 +126,7 @@ abstract contract MultiOwnable is IMultiOwnable, Initializable {
_owners.remove(oldOwners_);

address newOwner_ = _owners.length() > 0 ? _owners.at(0) : address(0);

if (newOwner_ != previousOwner_) {
emit OwnershipTransferred(previousOwner_, newOwner_);
}
Expand Down

0 comments on commit 3c671d9

Please sign in to comment.