Search code examples
smartcontractsvyper

Create new contracts from a contract Vyper


Is there any way to create any child contracts from a contract, example when someone call "createChildContract()" function. In solidity, simply using new operator sold the problem, how about vyper? Many thanks !


Solution

  • This solved my question:

    create_forwarder_to()
    

    Example at Uniswap's contract factory