{
    "Function": "_createWallet",
    "File": "contracts/smart-wallet/OwnableSmartWalletFactory.sol",
    "Parent Contracts": [
        "contracts/smart-wallet/interfaces/IOwnableSmartWalletFactory.sol",
        "contracts/smart-wallet/interfaces/IOwnableSmartWalletFactory.sol"
    ],
    "High-Level Calls": [
        "IOwnableSmartWallet",
        "Clones"
    ],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [
        "clone"
    ],
    "Low-Level Calls": [],
    "Code": "function _createWallet(address owner) internal returns (address wallet) {\n        require(owner != address(0), 'Wallet cannot be address 0');\n\n        wallet = Clones.clone(masterWallet);\n        IOwnableSmartWallet(wallet).initialize(owner); // F: [OSWF-1]\n        walletExists[wallet] = true;\n\n        emit WalletCreated(wallet, owner); // F: [OSWF-1]\n    }"
}