Function: initForSmartAccount(address[] eoaOwners)
Initializes the module for a smart account.
Inputs
eoaOwnersControl: 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
_smartAccountOwnersmapping for all theeoaOwners.Update the
numberOfOwnersmapping formsg.sender.
Negative behavior
Revert if any of the
eoaOwnersisaddress(0).Revert if
numberOfOwners[msg.sender]is nonzero.Revert if any of the
eoaOwnersis already an owner for the smart account.