Code the Factory model contract

A model contract is the smart contract that your Factory can clone and initialize.

A model contract must have an initialization method that allows the Factory to pass initialization data at cloning time.

In order to do so, your model contract must implement one of these utility abstract smart contracts provided by the swissKnife library:

These two smart contracts provide the Factory-compliant initialization method.

Last updated