Solidity 9 – Creating new Contracts and Inheritance

Published by Mario Oettler on

In this lesson, we learn how to create new contracts from a contract. We will also learn how to inherit from a contract. Creating new contracts from another contract can be used in factory and minimal proxy coding patterns.

There are two ways how to create a new contract from an existing contract – new and create2.