Function: removeOwner(address owner)
The function is used to remove an owner.
Inputs
ownerControl: Fully controlled by caller.
Constraints: Should not be
address(0).Impact: The address to remove from ownership.
Branches and code coverage
Intended branches
The mapping
_smartAccountOwnersis set to false forowner.The value of the
numberOfOwnersmapping is decreased for themsg.sender.
Negative behavior
Revert if
owneris not an owner of the smart account.
Function call analysis
this._transferOwnership(msg.sender, owner, newOwner)What is controllable?
msg.sender,owner, andnewOwner.If the return value is controllable, how is it used and how can it go wrong? N/A.
What happens if it reverts, reenters, or does other unusual control flow? N/A.