From 3c671d99bce606404366cec169dd00ec5d202094 Mon Sep 17 00:00:00 2001 From: mllwchrry Date: Mon, 3 Jun 2024 12:25:24 +0300 Subject: [PATCH] fixed style issues --- contracts/access/MultiOwnable.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/access/MultiOwnable.sol b/contracts/access/MultiOwnable.sol index 60bd0c36..0f9078d6 100644 --- a/contracts/access/MultiOwnable.sol +++ b/contracts/access/MultiOwnable.sol @@ -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"); @@ -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_); }