Skip to content

Commit d1bf378

Browse files
authored
Merge pull request #983 from Concordium/factory-pattern
A user guide for the factory pattern.
2 parents b8c1612 + c5a5b73 commit d1bf378

File tree

8 files changed

+403
-1
lines changed

8 files changed

+403
-1
lines changed

source/mainnet/smart-contracts/guides/contract-dev-guides.rst

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ Once you are familiar with smart contracts, it is a good idea to read the :ref:`
2626
upgradeable-contract
2727
json-params
2828
migrate-contracts
29+
factory-pattern

source/mainnet/smart-contracts/guides/factory-pattern.rst

+394
Large diffs are not rendered by default.
Loading

source/mainnet/smart-contracts/guides/images/factory-adversary.svg

+1
Loading

source/mainnet/smart-contracts/guides/images/factory-adversary2.svg

+1
Loading

source/mainnet/smart-contracts/guides/images/factory-tricked.svg

+1
Loading
Loading

source/mainnet/smart-contracts/onboarding-guide-ethereum-developers/faq.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,10 @@ Deploying and initializing smart contracts
625625

626626
.. dropdown:: Can I create a factory smart contract on Concordium?
627627

628-
No. A factory smart contract on the Ethereum chain deploys other smart contracts. In contrast,
628+
In short: no. A factory smart contract on the Ethereum chain deploys other smart contracts. In contrast,
629629
the ``init`` function has to be called by an account (not a smart contract) on the Concordium chain.
630+
The guide to :ref:`using the factory pattern on Concordium<factory-pattern>` discusses
631+
the alternatives and how to emulate the factory pattern.
630632

631633
.. dropdown:: Can I predict/calculate the address of the smart contract before deploying it? Is there something similar to the Ethereum CREATE2?
632634

0 commit comments

Comments
 (0)