Function: initForSmartAccount(address[] eoaOwners)
Initializes the module for a smart account.
Inputs
eoaOwners
Control: Fully controlled by the caller.
Constraints: No constraints.
Impact: These addresses become the owners of the smart account.
Branches and code coverage
Intended branches
Update the
_smartAccountOwners
mapping for all theeoaOwners
.Update the
numberOfOwners
mapping formsg.sender
.
Negative behavior
Revert if any of the
eoaOwners
isaddress(0)
.Revert if
numberOfOwners[msg.sender]
is nonzero.Revert if any of the
eoaOwners
is already an owner for the smart account.