Function: addOwner(address owner)
The function is used to add a new owner for the smart account.
Inputs
ownerControl: Fully controlled by caller.
Constraints: Should not be
address(0).Impact: The
ownerbecomes a new owner of the smart account.
Branches and code coverage
Intended branches
The mapping
_smartAccountOwnersis set to true for theowner.The value of
numberOfOwnersmapping increases formsg.sender.
Negative behavior
Revert if
owneris a smart contract.Revert if
ownerisaddress(0).Revert if
owneris already an owner of the smart account.