Function: removeOwner(address owner)

The function is used to remove an owner.

Inputs

  • owner

    • Control: 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 _smartAccountOwners is set to false for owner.

  • The value of the numberOfOwners mapping is decreased for the msg.sender.

Negative behavior

  • Revert if owner is not an owner of the smart account.

Function call analysis

  • this._transferOwnership(msg.sender, owner, newOwner)

    • What is controllable? msg.sender, owner, and newOwner.

    • 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.

Zellic © 2024Back to top ↑